Share via


CComSafeArray::operator

 

Retrieves an element from the array.

Syntax

      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

CComSafeArray Class
CComSafeArray::GetAt