Share via


CSimpleArray::SetAtIndex

Set the specified element in the array.

BOOL SetAtIndex(
   int nIndex,
   const T& t 
);

Parameters

  • nIndex
    The index of the element to change.

  • t
    The value to assign to the specified element.

Return Value

Returns TRUE if successful, FALSE if the index was not valid.

Requirements

Header: atlsimpcoll.h

See Also

Reference

CSimpleArray Class

CSimpleArray::RemoveAt

CSimpleArray::Add

Other Resources

CSimpleArray Members