template<class type>
Returns the index of the position of item d via pointer compare, or -1 if not found.
Definition at line 257 of file qptrvector.h. 00258 { 00259 int idx=0; 00260 for(typename std::vector<type *>::iterator it=std::vector<type *>::begin(); it!=std::vector<type *>::end(); ++it, ++idx) 00261 { 00262 if(*it==d) return idx; 00263 } 00264 return -1; 00265 }
|