Udostępnij za pośrednictwem


CAtlArray::SetAt

Call this method to set the value of an element in the array object.

void SetAt(
   size_t iElement,
   INARGTYPE element 
);

Parameters

  • iElement
    The index pointing to the array element to set.

  • element
    The new value of the specified element.

Remarks

In debug builds, an ATLASSERT will be raised if iElement exceeds the number of elements in the array. In retail builds, an invalid parameter may result in unpredictable results.

Example

See the example for CAtlArray::GetAt.

Requirements

Header: atlcoll.h

See Also

Reference

CAtlArray Class

CAtlArray::GetAt

CAtlArray::SetAtGrow

Other Resources

CAtlArray Members