Constructors
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...
| 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. |