template<class type, class allocator>
bool FX::QPtrList< type, allocator >::remove ( const type *  d  )  [inline, inherited]

Removes the specified item d via compareItems().

Reimplemented in FX::QSortedList< type, allocator >.

Definition at line 117 of file qptrlist.h.

References FX::QPtrList< type, allocator >::compareItems(), and FX::QPtrList< type, allocator >::deleteItem().

00118     {
00119         for(typename Base::iterator it=Base::begin(); it!=Base::end(); ++it)
00120         {
00121             if(0==compareItems(*it, const_cast<type *>(d)))
00122             {
00123                 deleteItem(*it);
00124                 Base::erase(it);
00125                 return true;
00126             }
00127         }
00128         return false;
00129     }


(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:37:43 2009 for TnFOX by doxygen v1.4.7