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.27
[lilypond.git]
/
flower
/
plist.tcc
blob
1dea8cefc123354cf27221f0a2bdd45413233acc
1
#include "plist.hh"
2
3
template<class T>
4
IPointerList<T>::~IPointerList()
5
{
6
PCursor<T> c( *this );
7
while (c.ok()) {
8
delete c.get();
9
}
10
}
11
12
template<class T>
13
PCursor<T>
14
PointerList<T>::find(T what ) const
15
{
16
PCursor<T> i(*this);
17
for (; i.ok(); i++)
18
if (i.ptr() == what)
19
break;
20
return i;
21
}