.upptst: STL compatiblity check

git-svn-id: svn://ultimatepp.org/upp/trunk@5993 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-04-20 16:58:35 +00:00
parent f5229a3ba5
commit 0b74164b14
3 changed files with 47 additions and 0 deletions

34
upptst/STL/STL.cpp Normal file
View file

@ -0,0 +1,34 @@
#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< ArrayIndex<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> > ();
}

9
upptst/STL/STL.upp Normal file
View file

@ -0,0 +1,9 @@
uses
Core;
file
STL.cpp;
mainconfig
"" = "SSE2";

4
upptst/STL/init Normal file
View file

@ -0,0 +1,4 @@
#ifndef _STL_icpp_init_stub
#define _STL_icpp_init_stub
#include "Core/init"
#endif