prevector::prevector

Constructors

Synopses

Declared in <prevector.h>

Constructs an empty container.

prevector() = default;
» more...

Constructs a copy of other.

prevector(prevector<N, T, Size, Diff> const& other);
» more...

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

prevector(prevector<N, T, Size, Diff>&& other) noexcept;
» more...

Constructs a container with n value-initialized elements.

explicit
prevector(size_type n);
» more...

Constructs a container with n copies of val.

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

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

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

Parameters

NameDescription
otherThe container to copy from.
nThe number of elements to create.
valThe value to copy into each element.
firstIterator to the first element to copy.
lastIterator one past the last element to copy.