CMapStringToOb::GetSize
Harita öğelerin sayısını verir.
INT_PTR GetSize( ) const;
Dönüş Değeri
Eşlemesindeki öğelerin sayısı.
Notlar
Eşlemesindeki öğelerin sayısını almak için bu yöntemi çağırın.
Diğer üye benzer işlevleri aşağıdaki tabloda gösterilmektedir CMapStringToOb::GetSize.
Sınıf |
Üye işlevi |
---|---|
INT_PTR GetSize () const; |
|
INT_PTR GetSize () const; |
|
INT_PTR GetSize () const; |
|
INT_PTR GetSize () const; |
|
INT_PTR GetSize () const; |
|
INT_PTR GetSize () const; |
Örnek
CMapStringToOb map;
map.SetAt(_T("Bart"), new CAge(13));
map.SetAt(_T("Homer"), new CAge(36));
ASSERT(map.GetSize() == 2);
Gereksinimler
Başlık: afxcoll.h