repo.or.cz
/
lilypond.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
lilypond-0.0.32
[lilypond.git]
/
flower
/
plist.inl
blob
82be3643343763af41c40a9c57a061182e3dcf5d
1
/* -*-c++-*-
2
plist.inl -- part of flowerlib
3
4
(c) 1996 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(IPointerList<T*> &to, IPointerList<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