Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Determines how many elements are in the map.
INT_PTR GetCount( ) const;
Return Value
The number of elements in this map.
Remarks
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; |
Example
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);
Requirements
Header: afxcoll.h