Aracılığıyla paylaş


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

CMapPtrToPtr

INT_PTR GetSize () const;

CMapPtrToWord

INT_PTR GetSize () const;

CMapStringToPtr

INT_PTR GetSize () const;

CMapStringToString

INT_PTR GetSize () const;

CMapWordToOb

INT_PTR GetSize () const;

CMapWordToPtr

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

Ayrıca bkz.

Başvuru

CMapStringToOb sınıfı

Hiyerarşi grafik