Share via


CComSafeArray::operator

Retrieves an element from the array.

T & operator [](
   LONG lIndex 
) const;
T & operator [](
   int nIndex 
) const;

Parameters

  • lIndex, nIndex
    The index number of the required element in the array.

Return Value

Returns the appropriate array element.

Remarks

Performs a similar function to CComSafeArray::GetAt, however this operator only works with single-dimensional arrays.

Requirements

Header: atlsafe.h

See Also

Reference

CComSafeArray Class

CComSafeArray::GetAt

Other Resources

CComSafeArray Members