#include "MdcRecoUtil/AList.h"
#include "MdcRecoUtil/AIterator.h"
#include <iostream>
Go to the source code of this file.
Functions | |
int | main () |
int main | ( | ) |
Definition at line 5 of file test.cxx.
References genRecEmupikp::i.
00006 { 00007 int a=1,b=2,c=3,d=4,e=5; 00008 00009 HepAList<int> aa; 00010 HepAListIterator<int> it(aa); 00011 00012 aa.append(&a); 00013 aa.append(&b); 00014 aa.append(&c); 00015 aa.append(&d); 00016 aa.append(&e); 00017 std::cout << aa.length()<<"\n"; 00018 for(int i=0;i<aa.length();i++)std::cout<<*aa[i]<<"\n"; 00019 int *p; 00020 while(p = it())std::cout<<*p<<"\n"; 00021 return 0; 00022 }