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

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

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

Definition at line 174 of file qptrlist.h.

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

00175     {
00176         for(typename Base::iterator it=Base::begin(); it!=Base::end(); ++it)
00177         {
00178             if(0==compareItems(*it, const_cast<type *>(d)))
00179             {
00180                 Base::erase(it);
00181                 return true;
00182             }
00183         }
00184         return false;
00185     }


(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