]> git.donarmstrong.com Git - lilypond.git/blob - flower/lib/include/plist.tcc
partial: 0.0.42.pre3.hanjan
[lilypond.git] / flower / lib / include / plist.tcc
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.remove_p();
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 }