CObList::GetCount
Gets the number of elements in this list.
INT_PTR GetCount( ) const;
Return Value
An integer value containing the element count.
The following table shows other member functions that are similar to CObList::GetCount.
Class |
Member Function |
---|---|
INT_PTR GetCount( ) const; |
|
INT_PTR GetCount( ) 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.GetCount() == 2);
Requirements
Header: afxcoll.h