ultimatepp/autotest/STL/STL.cpp
cxl 871f4efa74 .autotest
git-svn-id: svn://ultimatepp.org/upp/trunk@9772 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-05-03 07:04:56 +00:00

33 lines
641 B
C++

#include <Core/Core.h>
using namespace Upp;
template <class T>
void Check()
{
T a;
std::includes(a.begin(), a.end(), a.begin(), a.end());
const T& b = a;
std::includes(b.begin(), b.end(), b.begin(), b.end());
}
CONSOLE_APP_MAIN
{
Check< Vector<int> > ();
Check< Array<int> > ();
Check< BiVector<int> > ();
Check< BiArray<int> > ();
Check< Index<int> > ();
Check< VectorMap<int, int> > ();
Check< ArrayMap<int, int> > ();
Check< InVector<int> > ();
Check< InArray<int> > ();
Check< SortedIndex<int> > ();
Check< SortedVectorMap<int, int> > ();
Check< SortedArrayMap<int, int> > ();
}