#include using namespace Upp; template void ArrayTest() { T array; array.Add(1); array.Add(2); array.Add(3); DUMP(array); } template void BiArrayTest() { T array; array.AddTail(1); array.AddTail(2); array.AddTail(3); DUMP(array); } template void MapTest() { T map; map.Add(1, "one"); map.Add(2, "two"); map.Add(3, "three"); DUMP(map); map.Unlink(1); DUMP(map); } template void SortedMapTest() { T map; map.Add(1, "one"); map.Add(2, "two"); map.Add(3, "three"); DUMP(map); } template void FixedMapTest() { T map; map.Add(1, "one"); map.Add(2, "two"); map.Add(3, "three"); map.Finish(); DUMP(map); } CONSOLE_APP_MAIN { StdLogSetup(LOG_FILE|LOG_COUT); ArrayTest< Vector > (); ArrayTest< Array > (); ArrayTest< InVector > (); ArrayTest< InArray > (); ArrayTest< Index > (); ArrayTest< SortedIndex > (); BiArrayTest< BiVector > (); BiArrayTest< BiArray > (); MapTest< VectorMap >(); MapTest< ArrayMap >(); SortedMapTest< SortedVectorMap >(); SortedMapTest< SortedArrayMap >(); FixedMapTest< FixedVectorMap >(); FixedMapTest< FixedArrayMap >(); One x; DUMP(x); x.Create() = 1; DUMP(x); LOG("======== OK"); }