template<class type>
Replaces item at index i with d.
Definition at line 287 of file qptrvector.h. 00288 { 00289 if(isEmpty()) return false; 00290 typename std::vector<type *>::iterator it=std::vector<type *>::begin()+i; 00291 if(callDeleteItem) 00292 deleteItem(*it); 00293 *it=const_cast<type *>(d); 00294 //list<type *>::erase(list<type *>::begin()+i); 00295 //list<type *>::insert(list<type *>::begin()+i, d); 00296 return true; 00297 }
|