]> git.donarmstrong.com Git - lilypond.git/commitdiff
flower-1.0.11
authorfred <fred>
Tue, 3 Dec 1996 23:05:25 +0000 (23:05 +0000)
committerfred <fred>
Tue, 3 Dec 1996 23:05:25 +0000 (23:05 +0000)
flower/plist.cc

index 5c8e47093c9c11799f49b04735db9e13c6749679..2581d24279d75b90447255bb10e7976787fb9b3f 100644 (file)
@@ -10,3 +10,13 @@ IPointerList<T>::remove(PCursor<T> me )
         List<void*>::remove(me); 
     }
 }
+template<class T>
+PCursor<T> 
+PointerList<T>::find(T what ) const
+{
+    PCursor<T> i(*this);
+    for (; i.ok(); i++)
+       if (i.ptr() == what)
+          break;
+    return i;    
+}