Constructors

Synopses

Declared in <prevector.h>

Constructs an empty container.

constexpr
prevector() = default;

Constructs a container with n value‐initialized elements.

explicit
prevector(size_type n);

Constructs a copy of other.

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

Constructs a container with n copies of val.

explicit
prevector(
    size_type n,
    unsigned char 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

n

The number of elements to create.

other

The container to copy from.

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