template<class type, class allocator>
bool FX::QPtrList< type, allocator >::replace ( uint  i,
const type *  d 
) [inline, inherited]

Replaces item at index i with d.

Definition at line 306 of file qptrlist.h.

References FX::QPtrList< type, allocator >::isEmpty().

00307     {
00308         if(isEmpty()) return false;
00309         typename Base::iterator it=int_idx(i);
00310         *it=d;
00311         //list<type *>::erase(list<type *>::begin()+i);
00312         //list<type *>::insert(list<type *>::begin()+i, d);
00313         return true;
00314     }


(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