]> git.donarmstrong.com Git - lilypond.git/blob - flower/include/plist.icc
release: 0.1.8
[lilypond.git] / flower / include / plist.icc
1 /* -*-c++-*-
2   plist.icc -- part of flowerlib
3
4   (c) 1996,1997 Han-Wen Nienhuys& Jan Nieuwenhuizen
5 */
6
7 #ifndef PLIST_INL
8 #define PLIST_INL
9
10 template<class T>
11 void
12 PL_copy (Pointer_list<T*> &to, Pointer_list<T*> const&src)
13 {
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     }
19 }
20
21 #endif