Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CAtlArray::SetAt

 

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


      void SetAt(
   size_t iElement,
   INARGTYPE element 
);

iElement

The index pointing to the array element to set.

element

The new value of the specified element.

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

Show: