Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
Returns the number of list elements.
INT_PTR GetSize( ) const;
Return Value
The number of items in the list.
Remarks
Call this method to retrieve the number of elements in the list.
The following table shows other member functions that are similar to CObList::GetSize.
Class |
Member Function |
|---|---|
INT_PTR GetSize( ) const; |
|
INT_PTR GetSize( ) const; |
Example
See CObList::CObList for a listing of the CAge class.
CObList list;
list.AddHead(new CAge(21));
list.AddHead(new CAge(40)); // List now contains (40, 21).
ASSERT(list.GetSize() == 2);
Requirements
Header: afxcoll.h