Replaces the contents with copies of the elements in the range [first, last).]

Synopsis

Declared in <prevector.h>

template<std::input_iterator InputIterator>
void
assign(
    InputIterator first,
    InputIterator last);

Parameters

Name

Description

first

Iterator to the first element to copy.

last

Iterator one past the last element to copy.

Created with MrDocs