template<class type>
Returns the number of item d in the list via compareItems().
Definition at line 267 of file qptrvector.h. 00268 { 00269 uint count=0; 00270 for(typename std::vector<type *>::const_iterator it=std::vector<type *>::begin(); it!=std::vector<type *>::end(); ++it) 00271 { 00272 if(0==compareItems(const_cast<type *>(*it), const_cast<type *>(d))) count++; 00273 } 00274 return count; 00275 }
|