[#prevector-0c-2constructor-0e]
= xref:prevector-0c.adoc[prevector]::prevector
:relfileprefix: ../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;prevector&period;h&gt;`

Constructs an empty container&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:prevector-0c/2constructor-0c.adoc[prevector]() = default;
----

[.small]#xref:prevector-0c/2constructor-0c.adoc[_» more&period;&period;&period;_]#

Constructs a copy of `other`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:prevector-0c/2constructor-0a.adoc[prevector](xref:prevector-0c.adoc[prevector&lt;N, T, Size, Diff&gt;] const& other);
----

[.small]#xref:prevector-0c/2constructor-0a.adoc[_» more&period;&period;&period;_]#

Constructs a container by moving the contents of `other`, leaving it empty&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:prevector-0c/2constructor-01.adoc[prevector](xref:prevector-0c.adoc[prevector&lt;N, T, Size, Diff&gt;]&& other) noexcept;
----

[.small]#xref:prevector-0c/2constructor-01.adoc[_» more&period;&period;&period;_]#

Constructs a container with `n` value&hyphen;initialized elements&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:prevector-0c/2constructor-02.adoc[prevector](xref:prevector-0c/size_type.adoc[size&lowbar;type] n);
----

[.small]#xref:prevector-0c/2constructor-02.adoc[_» more&period;&period;&period;_]#

Constructs a container with `n` copies of `val`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:prevector-0c/2constructor-0d.adoc[prevector](
    xref:prevector-0c/size_type.adoc[size&lowbar;type] n,
    T const& val);
----

[.small]#xref:prevector-0c/2constructor-0d.adoc[_» more&period;&period;&period;_]#

Constructs a container from the elements in the range &lsqb;first, last)&period;&rsqb;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;std::input&lowbar;iterator InputIterator&gt;
xref:prevector-0c/2constructor-09.adoc[prevector](
    InputIterator first,
    InputIterator last);
----

[.small]#xref:prevector-0c/2constructor-09.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| The container to copy from&period;
| *n*
| The number of elements to create&period;
| *val*
| The value to copy into each element&period;
| *first*
| Iterator to the first element to copy&period;
| *last*
| Iterator one past the last element to copy&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
