]> git.donarmstrong.com Git - lilypond.git/blob - flower/include/plist.tcc
5ce6c2446c29b6921036d14e442eaa4b5dccc3db
[lilypond.git] / flower / include / plist.tcc
1 /*
2   plist.tcc -- implement Pointer_list
3
4   source file of the Flower Library
5
6   (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
8
9
10 #ifndef PLIST_TCC
11 #define PLIST_TCC
12
13 #include "plist.hh"
14
15 #define POINTERLIST_INSTANTIATE(a) class Pointer_list<a*>;\
16         template class PCursor<a*>;
17         
18 template<class T>
19 void
20 Pointer_list<T>::junk()
21 {
22   PCursor<T> c (*this);
23   while (c.ok()) 
24     {
25         delete c.remove_p();
26     }
27 }
28
29 #endif // PLIST_TCC