template<class type>
bool FX::QPtrVector< type >::takeRef ( const type *  d  )  [inline]

Removes the specified item d via pointer compare (quicker) without auto-deletion.

Definition at line 194 of file qptrvector.h.

00195     {
00196         for(typename std::vector<type *>::iterator it=std::vector<type *>::begin(); it!=std::vector<type *>::end(); ++it)
00197         {
00198             if(*it==d)
00199             {
00200                 std::vector<type *>::erase(it);
00201                 return true;
00202             }
00203         }
00204         return false;
00205     }


(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