template<class type, class allocator>
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 }
|