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

Removes the specified item d via compareItems() without auto-deletion.

Definition at line 181 of file qptrvector.h.

00182     {
00183         for(typename std::vector<type *>::iterator it=std::vector<type *>::begin(); it!=std::vector<type *>::end(); ++it)
00184         {
00185             if(0==compareItems(*it, const_cast<type *>(d)))
00186             {
00187                 std::vector<type *>::erase(it);
00188                 return true;
00189             }
00190         }
00191         return false;
00192     }


(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