rendered paste body#include "class.h"#include "map.h"template<class Iterator, class Stream> 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<node> 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<string,node2> m; //Tree a; //a.add(m); //Tree::DB::show(a); return 0;}