#include #include using namespace hgl; using namespace std; template class NewList:public Collection { public: NewList(MemoryBlock *amb=new MemoryBlock(new MemoryAllocator)):Collection(amb) { } virtual ~NewList()=default; };// void main(int,char **) { { MemoryAllocator *ma=new MemoryAllocator; ma->Alloc(1024); MemoryBlock mb(ma); } { cout<<"Collection"< ulist; ulist.Add(1); } }