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