CArray::GetData

const TYPE* GetData( ) const;

TYPE* GetData( );

Return Value

A pointer to an array element.

Parameters

TYPE

Template parameter specifying the type of the array elements.

Remarks

Use this member function to gain direct access to the elements in an array. If no elements are available, GetData returns a null value.

While direct access to the elements of an array can help you work more quickly, use caution when calling GetData; any errors you make directly affect the elements of your array.

CArray OverviewClass MembersHierarchy Chart

See Also   CArray::GetAt, CArray::SetAt, CArray::ElementAt