#include "class.h" #include "map.h" template void DB::show( Iterator const & begin, Iterator const & end, Stream & stream) { for(Iterator iterator = begin; iterator != end; ++iterator) { stream << iterator->vard << " " << iterator->pav << " " << iterator->miestas << " " << iterator->laikas << " " << iterator->nr << " " << iterator->nr1 << endl; } } int main() { DB A; list l; A.add(l); A.show(l.begin(),l.end(), cout); A.del(l); A.show(l.begin(),l.end(), cout); A.update(l); A.show(l.begin(),l.end(), cout); //map m; //Tree a; //a.add(m); //Tree::DB::show(a); return 0; }