CHPtrArray::operator [] method

[The CHPtrArray class is part of the WMI Provider Framework which is now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. The MI APIs should be used for all new development.]

The CHPtrArray::operator[] subscript operators get the element at the specified index. You can use this function in place of the CHPtrArray::GetAt method.

Syntax

WCHAR operator [](
    nIndex
) const;

Parameters

  • nIndex
    Zero-based index of a character in the string.

Return value

The subscript operators return the CHPtrArray pointer element currently at this index.

Remarks

You can use the first operator, which calls for arrays that are not const, on either the right (r-value) or the left (l-value) side of an assignment statement. The second, which calls for const arrays, can be used only on the right.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

ChPtrArr.h (include FwCommon.h)

Library

FrameDyn.lib

DLL

FrameDynOS.dll; FrameDyn.dll

See also

CHPtrArray

Provider Framework Utility Classes