Share via


CAtlArray::GetCount

Call this method to return the number of elements stored in the array.

size_t GetCount( ) const throw( );

Return Value

Returns the number of elements stored in the array.

Remarks

As the first element in the array is at position 0, the value returned by GetCount is always 1 greater than the largest index.

Example

See the example for CAtlArray::GetAt.

Requirements

Header: atlcoll.h

See Also

Reference

CAtlArray Class

CAtlArray::GetData