CMapStringToOb::GetCount
Determines how many elements are in the map.
INT_PTR GetCount( ) const;
The number of elements in this map.
The following table shows other member functions that are similar to CMapStringToOb::GetCount.
Class |
Member Function |
---|---|
INT_PTR GetCount( ) const; |
|
INT_PTR GetCount( ) const; |
|
INT_PTR GetCount( ) const; |
|
INT_PTR GetCount( ) const; |
|
INT_PTR GetCount( ) const; |
|
INT_PTR GetCount( ) const; |
See CObList::CObList for a listing of the CAge class used in all collection examples.
CMapStringToOb map;
map.SetAt(_T("Bart"), new CAge(13));
map.SetAt(_T("Homer"), new CAge(36));
ASSERT(map.GetCount() == 2);
Header: afxcoll.h