template<typename type, class allocator>
FXival FX::QMemArray< type, allocator >::contains ( const type &  val  )  const [inline]

Returns the number of times val is in the array.

Definition at line 179 of file qmemarray.h.

00180     {
00181         FXuval count=0;
00182         for(FXuval n=0; n<size(); n++)
00183         {
00184             if(at(n)==val) count++;
00185         }
00186         return count;
00187     }


(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:37:41 2009 for TnFOX by doxygen v1.4.7