template<class type>
bool FX::QPtrVector< type >::remove ( const type *  d  )  [inline]

Removes the specified item d via compareItems().

Definition at line 133 of file qptrvector.h.

00134     {
00135         for(typename std::vector<type *>::iterator it=std::vector<type *>::begin(); it!=std::vector<type *>::end(); ++it)
00136         {
00137             if(0==compareItems(*it, const_cast<type *>(d)))
00138             {
00139                 deleteItem(*it);
00140                 erase(it);
00141                 return true;
00142             }
00143         }
00144         return false;
00145     }


(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