assign overloads

Synopses

Declared in <prevector.h>

Replaces the contents with n copies of val.

void
assign(
    size_type n,
    unsigned char const& val);

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

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

Parameters

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.

Created with MrDocs