TrySetValue

Sets the value of the list element at the specified index.

bool TrySetValue(
   const int  index,     // index
   T          value      // element value
   );

Parameters

index

[in]  The index of the list element the value of which you want to set.

value

[in]  Sets the value of the list element.

Return Value

Returns true on successful, or false otherwise.