bsl::list::assign

assign overloads

Synopses

Declared in <bslstl_list.h>

Assign to this list the values in the specified values list.

void
assign(std::initializer_list<value_type> values);
» more...

Replace the contents of this list with numElements copies of value.

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

Assign to this list the values in the range [first .. last)].

template<class INPUT_ITERATOR>
void
assign(
    INPUT_ITERATOR first,
    INPUT_ITERATOR last)
requires !is_arithmetic<INPUT_ITERATOR>::value &&
                    !is_enum<INPUT_ITERATOR>::value;
» more...

Parameters

NameDescription
valuesinitializer list of values to assign
numElementsnumber of copies of value to assign
valuevalue copied into each element
firststart of the iterator range
lastone past the end of the iterator range