ultimatepp/uppdev/Vector/Vector.cpp
cxl 0e04c59abc cpp11 branch - committing the merge (rest of it)
git-svn-id: svn://ultimatepp.org/upp/trunk@7048 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-03-16 16:35:29 +00:00

32 lines
423 B
C++

#include <Core/Core.h>
using namespace Upp;
Vector<int> Test()
{
Vector<int> x;
x << 1 << 2 << 3;
return pick(x);
}
CONSOLE_APP_MAIN
{
Vector<String> test;
test.Add("1");
test.Add("2");
test.Add("3");
test.Add("5");
test.Add("4");
DUMPC(test);
Vector<String> b = pick(test);
for(auto x: b)
DLOG(x);
DDUMP(__cplusplus);
#ifdef CPP_11
LOG("C++ 11 active");
#endif
}