2 plist.inl -- part of flowerlib
4 (c) 1996 Han-Wen Nienhuys& Jan Nieuwenhuizen
14 PointerList<T>::~PointerList()
16 Cursor<T> next(*this);
17 for ( Cursor<T> c( *this ); c.ok(); c = next ) {
20 remove( c ); // PointerList::remove deletes the real data
26 PointerList_print( PointerList<T> const & l )
28 List<T>& promises_to_be_const = (List<T>&) l;
29 for ( Cursor<T> c( promises_to_be_const ); c.ok(); c++ )
35 PL_copy(PointerList<T> &to,PointerList<T> const&src)
37 for (PCursor<T> pc(src); pc.ok(); pc++) {
39 T p=new typeof(*q) (*q) ; // argh, how do i do this in ANSI-C++