Replace the element at dstIndex with value.
Declared in <bdlc_packedintarray.h>
void
replace(
std::size_t dstIndex,
ElementType value);
Change the value of the element at the specified dstIndex in this array to the specified value. The behavior is undefined unless dstIndex < length().
| Name | Description |
|---|---|
| dstIndex | index of the element to replace |
| value | new element value |