CSimpleArray::SetAtIndex

 

Set the specified element in the array.

Syntax

      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

CSimpleArray Class
CSimpleArray::RemoveAt
CSimpleArray::Add