CArray::ElementAt

TYPE**&ElementAt(intnIndex);**

Return Value

A reference to an array element.

Parameters

TYPE

Template parameter specifying the type of elements in the array.

nIndex

An integer index that is greater than or equal to 0 and less than or equal to the value returned by GetUpperBound.

Remarks

Returns a temporary reference to the specified element within the array. It is used to implement the left-side assignment operator for arrays.

Example

See the example for GetSize.

CArray OverviewClass MembersHierarchy Chart

See Also   CArray::operator []