[#bsl-vector-00d-2constructor-0d]
= xref:bsl.adoc[bsl]::xref:bsl/vector-00d.adoc[vector]::vector
:relfileprefix: ../../
:mrdocs:

Create a vector from the elements of the specifed `range`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;vector&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;RANGE&gt;
vector(
    std::from&lowbar;range&lowbar;t unused,
    t&lowbar;RANGE&& range,
    ALLOCATOR const& basicAllocator = ALLOCATOR());
----

== Description

Create a vector from the elements of the specifed `range`&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is not specified, a default&hyphen;constructed object of the (template parameter) type `ALLOCATOR` is used&period; Note that `range` must meet the requirements of an input range and the values from `range` must have a type matching or convertible to (template parameter) `VALUE&lowbar;TYPE`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *unused*
| tag selecting the from&hyphen;range constructor overload
| *range*
| input range of elements
| *basicAllocator*
| allocator used to supply memory
|===


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