template<class type>
bool FX::QPtrVector< type >::replace ( uint  i,
const type *  d,
bool  callDeleteItem = true 
) [inline]

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     }


(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:37:43 2009 for TnFOX by doxygen v1.4.7