Constructors

Synopses

Declared in <prevector.h>

Constructs an empty container.

prevector() = default;

Constructs a copy of other.

Constructs a container by moving the contents of other, leaving it empty.

Constructs a container with n value‐initialized elements.

explicit
prevector(size_type n);

Constructs a container with n copies of val.

explicit
prevector(
    size_type n,
    T const& val);

Constructs a container from the elements in the range [first, last).]

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

Parameters

Name

Description

other

The container to copy from.

n

The number of elements to create.

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