template<class type>
Returns the index of the position of item d via compareItems(), or -1 if not found.
Definition at line 247 of file qptrvector.h. 00248 { 00249 int idx=0; 00250 for(typename std::vector<type *>::iterator it=std::vector<type *>::begin(); it!=std::vector<type *>::end(); ++it, ++idx) 00251 { 00252 if(0==compareItems(*it, const_cast<type *>(d))) return idx; 00253 } 00254 return -1; 00255 }
|