void assign(const_iterator first, const_iterator last);
void assign(size_type n, const T& x = T());
The first member function replaces the sequence controlled by *this
with the sequence [first, last)
. The second
member function replaces the sequence controlled by *this
with a repetition of n
elements of value x
.
In this implementation, if a translator does not support member template functions, the templates:
template<class InIt>
void assign(InIt first, InIt last);
template<class Size, class T2>
void assign(Size n, const T2& x = T2());
are replaced by:
void assign(const_iterator first, const_iterator last);
void assign(size_type n, const T& x = T());