[#bsl-deque-0c-2constructor-0db]
= xref:bsl.adoc[bsl]::xref:bsl/deque-0c.adoc[deque]::deque
:relfileprefix: ../../
:mrdocs:

Create a deque of the specified `numElements` size whose every element is value&hyphen;initialized&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is not supplied, a default&hyphen;constructed object of the (template parameter) type `ALLOCATOR` is used&period; If the type `ALLOCATOR` is `bsl&colon;&colon;allocator` (the default), then `basicAllocator`, if supplied, shall be convertible to `bslma&colon;&colon;Allocator &ast;`&period; If the type `ALLOCATOR` is `bsl&colon;&colon;allocator` and `basicAllocator` is not supplied, the currently installed default allocator is used&period; Throw `bsl&colon;&colon;length&lowbar;error` if `numElements &gt; max&lowbar;size()`&period; This method requires that the (template parameter) `VALUE&lowbar;TYPE` be `default&hyphen;insertable` into this deque (see &lcub;Requirements on `VALUE&lowbar;TYPE`&rcub;)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
deque(
    xref:bsl/deque-0c/size_type.adoc[size&lowbar;type] numElements,
    ALLOCATOR const& basicAllocator = ALLOCATOR());
----


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