CObList::GetCount

int GetCount( ) const;

Return Value

An integer value containing the element count.

Remarks

Gets the number of elements in this list.

Example

CObList list;

list.AddHead( new CAge( 21 ) );
list.AddHead( new CAge( 40 ) ); // List now contains (40, 21).
ASSERT( list.GetCount() == 2 );

CObList OverviewClass MembersHierarchy Chart

See Also   CObList::IsEmpty