assign overloads

Synopses

Declared in <bslstp_slist.h>

Replace the contents of this list with __n copies of __val.

void
assign(
    size_type __n,
    _Tp const& __val);

Replace the contents of this list with the range [__first, __last)].

template<class _InputIterator>
void
assign(
    _InputIterator __first,
    _InputIterator __last);

Parameters

Name

Description

__n

number of elements after assignment

__val

value copied into each element

__first

beginning of the range to assign

__last

end of the range to assign (exclusive)

Created with MrDocs