[#bsl-vector-008-2constructor-00]
= xref:bsl.adoc[bsl]::xref:bsl/vector-008.adoc[vector&lt;Json&gt;]::vector
:relfileprefix: ../../
:mrdocs:

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;

== 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,
    t&lowbar;RANGE&& range,
    xref:bsl/allocator-0df.adoc[allocator&lt;Json&gt;] const& basicAllocator = ALLOCATOR());
----


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