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);

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

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

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;

Parameters

Name

Description

values

initializer list of values to assign

numElements

number of copies of value to assign

value

value copied into each element

first

start of the iterator range

last

one past the end of the iterator range

Created with MrDocs