#include "MdcRecoUtil/AList.h"
#include "MdcRecoUtil/AIterator.h"
#include <iostream>
Go to the source code of this file.
◆ main()
Definition at line 5 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/test/test.cxx.
6{
7 int a=1,
b=2,c=3,d=4,e=5;
8
10 HepAListIterator<int> it(aa);
11
12 aa.append(&a);
14 aa.append(&c);
15 aa.append(&d);
16 aa.append(&e);
17 std::cout << aa.length()<<"\n";
18for(int i=0;i<aa.length();i++)std::cout<<*aa[i]<<"\n";
19int *p;
20while(p = it())std::cout<<*p<<"\n";
21return 0;
22}