assign overloads
Declared in <prevector.h>
Replaces the contents with n copies of val.
void
assign(
size_type n,
T const& val);
» more...
Replaces the contents with copies of the elements in the range [first, last).]
template<std::input_iterator InputIterator>
void
assign(
InputIterator first,
InputIterator last);
» more...
| Name | Description |
|---|---|
| n | The number of copies to store. |
| val | The value to copy into each element. |
| first | Iterator to the first element to copy. |
| last | Iterator one past the last element to copy. |