Compartir a través de


CArray::GetUpperBound

Returns the current upper bound of this array.

INT_PTR GetUpperBound( ) const;

Remarks

Because array indexes are zero-based, this function returns a value 1 less than GetSize.

The condition GetUpperBound( ) = –1 indicates that the array contains no elements.

Example

See the example for CArray::GetAt.

Requirements

Header: afxtempl.h

See Also

Reference

CArray Class

Hierarchy Chart

CArray::GetSize

CArray::SetSize