This topic has not yet been rated - Rate this topic

CObList::GetSize

Returns the number of list elements.

INT_PTR GetSize( ) const;

The number of items in the list.

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

CPtrList

INT_PTR GetSize( ) const;

CStringList

INT_PTR GetSize( ) const;

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);      


Header: afxcoll.h

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ