From 4aee8313d48e7504b6f1be1238bb18258da419e7 Mon Sep 17 00:00:00 2001 From: fred Date: Tue, 3 Dec 1996 23:05:24 +0000 Subject: [PATCH] flower-1.0.18 --- flower/plist.tcc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 flower/plist.tcc diff --git a/flower/plist.tcc b/flower/plist.tcc new file mode 100644 index 0000000000..2581d24279 --- /dev/null +++ b/flower/plist.tcc @@ -0,0 +1,22 @@ +#include "plist.hh" + +// not inlined since it assumes knowledge of destructor. +template +void +IPointerList::remove(PCursor me ) +{ + if ( me.ok() ) { + delete me.ptr(); + List::remove(me); + } +} +template +PCursor +PointerList::find(T what ) const +{ + PCursor i(*this); + for (; i.ok(); i++) + if (i.ptr() == what) + break; + return i; +} -- 2.39.5