[#prevector-01-2constructor-0d] = xref:prevector-01.adoc[prevector<36, unsigned char>]::prevector :relfileprefix: ../ :mrdocs: Constructors == Synopses Declared in `<prevector.h>` Constructs an empty container. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:prevector-01/2constructor-01.adoc[prevector]() = default; ---- [.small]#xref:prevector-01/2constructor-01.adoc[_» more..._]# Constructs a container with `n` value‐initialized elements. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:prevector-01/2constructor-0c.adoc[prevector](xref:prevector-01/size_type.adoc[size_type] n); ---- [.small]#xref:prevector-01/2constructor-0c.adoc[_» more..._]# Constructs a copy of `other`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:prevector-01/2constructor-05.adoc[prevector](xref:prevector-0c.adoc[prevector<36U, unsigned char, unsigned int, int>] const& other); ---- [.small]#xref:prevector-01/2constructor-05.adoc[_» more..._]# Constructs a container by moving the contents of `other`, leaving it empty. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:prevector-01/2constructor-00.adoc[prevector](xref:prevector-0c.adoc[prevector<36U, unsigned char, unsigned int, int>]&& other) noexcept; ---- [.small]#xref:prevector-01/2constructor-00.adoc[_» more..._]# Constructs a container with `n` copies of `val`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:prevector-01/2constructor-0a.adoc[prevector]( xref:prevector-01/size_type.adoc[size_type] n, unsigned char const& val); ---- [.small]#xref:prevector-01/2constructor-0a.adoc[_» more..._]# Constructs a container from the elements in the range [first, last).] [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::input_iterator InputIterator> xref:prevector-01/2constructor-09.adoc[prevector]( InputIterator first, InputIterator last); ---- [.small]#xref:prevector-01/2constructor-09.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#