[#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‐constructed. Use the specified `basicAllocator` to supply memory. If the type `ALLOCATOR` is `bsl::allocator` (the default), then `basicAllocator` shall be convertible to `bslma::Allocator *`. 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`}). == Synopsis Declared in `<bslstl_list.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- list( xref:bsl/list-054/size_type.adoc[size_type] numElements, ALLOCATOR const& basicAllocator); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#