Replace the contents of this list with the specified numElements copies of the specified value. Note that, to the extent possible, existing elements of this list are copy‐assigned to, to minimize the number of nodes that need to be copy‐inserted or erased.

Synopsis

Declared in <bslstl_list.h>

void
assign(
    size_type numElements,
    value_type const& value);

Created with MrDocs