int GetCount( ) const;
Return Value
The number of elements in this map.
Remarks
Call this member function to determine how many elements are in the map.
Example
See CObList::CObList for a listing of the CAge
class used in all collection examples.
// example for CMapStringToOb::GetCount
CMapStringToOb map;
map.SetAt( "Bart", new CAge( 13 ) );
map.SetAt( "Homer", new CAge( 36 ) );
ASSERT( map.GetCount() == 2 );
CMapStringToOb Overview | Class Members | Hierarchy Chart
See Also CMapStringToOb::IsEmpty