CMapStringToOb::GetSize
Returns the number of map elements.
INT_PTR GetSize( ) const;
The number of items in the map.
Call this method to retrieve the number of elements in the map.
The following table shows other member functions that are similar to CMapStringToOb::GetSize.
Class |
Member Function |
---|---|
INT_PTR GetSize( ) const; |
|
INT_PTR GetSize( ) const; |
|
INT_PTR GetSize( ) const; |
|
INT_PTR GetSize( ) const; |
|
INT_PTR GetSize( ) const; |
|
INT_PTR GetSize( ) const; |
CMapStringToOb map;
map.SetAt(_T("Bart"), new CAge(13));
map.SetAt(_T("Homer"), new CAge(36));
ASSERT(map.GetSize() == 2);
Header: afxcoll.h