template<class type, class allocator>
type* FX::QPtrList< type, allocator >::take ( uint  i  )  [inline, inherited]

Removes the item at index i without auto-deletion.

Definition at line 165 of file qptrlist.h.

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

00166     {
00167         if(isEmpty()) return 0; // Fails for non-pointer types
00168         typename Base::iterator it=int_idx(i);
00169         type *ret=*it;
00170         Base::erase(it);
00171         return ret;
00172     }


(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