template<class type>
type* FX::QPtrVector< type >::take ( uint  i  )  [inline]

Removes the item at index i without auto-deletion.

Definition at line 172 of file qptrvector.h.

00173     {
00174         if(isEmpty()) return 0; // Fails for non-pointer types
00175         typename std::vector<type *>::iterator it=std::vector<type *>::begin()+i;
00176         type *ret=*it;
00177         std::vector<type *>::erase(it);
00178         return ret;
00179     }


(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