[#bsl-list-054-2constructor-018]
= xref:bsl.adoc[bsl]::xref:bsl/list-054.adoc[list]::list
:relfileprefix: ../../
:mrdocs:

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

== Synopsis

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

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


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