lilypond-0.0.32
[lilypond.git] / flower / plist.inl
blob82be3643343763af41c40a9c57a061182e3dcf5d
1 /* -*-c++-*-
2   plist.inl -- part of flowerlib
4   (c) 1996 Han-Wen Nienhuys& Jan Nieuwenhuizen
5 */
7 #ifndef PLIST_INL
8 #define PLIST_INL
10 template<class T>
11 void
12 PL_copy(IPointerList<T*> &to, IPointerList<T*> const&src)
14     for (PCursor<T*> pc(src); pc.ok(); pc++) {
15         T *q = pc;
16         T *p=new T(*q) ; 
17         to.bottom().add(p);
18     }
21 #endif