diff --git a/CollectionTest.cpp b/CollectionTest.cpp index a072898..c3bdba5 100644 --- a/CollectionTest.cpp +++ b/CollectionTest.cpp @@ -1,22 +1,17 @@ #include +//#include #include using namespace hgl; using namespace std; -template class NewList:public Collection +void out(const Collection &c) { + for(const uint32 &value:c) + std::cout< cu; - NewList ulist; + for(uint i=0;i<20;i++) + { + cu.Add(i/2);out(cu); + } - ulist.Add(1); + cu.Insert(0,0);out(cu); + + std::cout<<"indexOf(5) is "< del_cu; + + del_cu.Add(2); + del_cu.Add(3); + + std::cout<<"remove all 2 and 3"< ul; + + //ul.Add(1024); } }