[#bsl-list-054-2constructor-06e] = xref:bsl.adoc[bsl]::xref:bsl/list-054.adoc[list]::list :relfileprefix: ../../ :mrdocs: Create a list of `numElements` default‐constructed elements. == Synopsis Declared in `<bslstl_list.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit list(xref:bsl/list-054/size_type.adoc[size_type] numElements); ---- == Description A default‐constructed object of the (template parameter) type `ALLOCATOR` is used. If the type `ALLOCATOR` is `bsl::allocator`, the currently installed default allocator is used. Throw `bsl::length_error` if `numElements > max_size()`. This method requires that the (template parameter) `VALUE` be `default‐insertable` into this list (see {Requirements on `VALUE`}). == Parameters [cols="1,4"] |=== | Name| Description | *numElements* | number of default‐constructed elements |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#