template<class type, class allocator>
int FX::QPtrList< type, allocator >::find ( const type *  d  )  [inline, inherited]

Returns the index of the position of item d via compareItems(), or -1 if not found.

Definition at line 266 of file qptrlist.h.

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

00267     {
00268         int idx=0;
00269         for(typename Base::iterator it=Base::begin(); it!=Base::end(); ++it, ++idx)
00270         {
00271             if(0==compareItems(*it, d)) return idx;
00272         }
00273         return -1;
00274     }


(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