[#bsl-vector-0a0-2constructor-03ba]
= xref:bsl.adoc[bsl]::xref:bsl/vector-0a0.adoc[vector&lt;signed char&gt;]::vector
:relfileprefix: ../../
:mrdocs:

Create a vector, and insert (in order) each `VALUE&lowbar;TYPE` object in the range starting at the specified `first` element, and ending immediately before the specified `last` element&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; If the type `ALLOCATOR` is `bsl&colon;&colon;allocator` and `basicAllocator` is not supplied, the currently installed default allocator is used&period; Throw `std&colon;&colon;length&lowbar;error` if the number of elements in `&lsqb;first &period;&period; last)&rsqb;` exceeds the value returned by the method `max&lowbar;size`&period; The (template parameter) type `INPUT&lowbar;ITER` shall meet the requirements of an input iterator defined in the C&plus;&plus;11 standard &lsqb;24&period;2&period;3&rsqb;providing access to values of a type convertible to `value&lowbar;type`, and `value&lowbar;type` must be `emplace&hyphen;constructible` from `&ast;i` into this vector, where `i` is a dereferenceable iterator in the range `&lsqb;first &period;&period; last)&rsqb;` (see &lcub;Requirements on `VALUE&lowbar;TYPE`&rcub;)&period; The behavior is undefined unless `first` and `last` refer to a range of valid values where `first` is at a position at or before `last`&period; Note that a `bslma&colon;&colon;Allocator &ast;` can be supplied for `basicAllocator` if the type `ALLOCATOR` is `bsl&colon;&colon;allocator` (the default)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class INPUT&lowbar;ITER&gt;
vector(
    INPUT&lowbar;ITER first,
    INPUT&lowbar;ITER last,
    xref:bsl/allocator-0df.adoc[allocator&lt;signed char&gt;] const& basicAllocator = ALLOCATOR());
----


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