template<class type, class allocator>
Returns the index of the position of item d via compareItems(), or -1 if not found.
Definition at line 266 of file qptrlist.h. References FX::QPtrList< type, allocator >::compareItems(). 00267 { 00268 int idx=0; 00269 for(typename Base::iterator it=Base::begin(); it!=Base::end(); ++it, ++idx) 00270 { 00271 if(0==compareItems(*it, d)) return idx; 00272 } 00273 return -1; 00274 }
|