[#bsl-vector-0ec-2constructor-0d5] = xref:bsl.adoc[bsl]::xref:bsl/vector-0ec.adoc[vector<unsigned int>]::vector :relfileprefix: ../../ :mrdocs: Create a vector of the specified `initialSize` whose every element is a default‐constructed object of the (template parameter) type `VALUE_TYPE`. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is not specified, a default‐constructed object of the (template parameter) type `ALLOCATOR` is used. If the type `ALLOCATOR` is `bsl::allocator` and `basicAllocator` is not supplied, the currently installed default allocator is used. Throw `std::length_error` if `initialSize > max_size()`. This method requires that the type `VALUE_TYPE` be `default‐insertable` into this vector (see {Requirements on `VALUE_TYPE`}). Note that a `bslma::Allocator *` can be supplied for `basicAllocator` if the type `ALLOCATOR` is `bsl::allocator` (the default). == Synopsis Declared in `<bslstl_vector.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit vector( xref:bsl/vector-0ec/size_type.adoc[size_type] initialSize, xref:bsl/allocator-0df.adoc[allocator<unsigned int>] const& basicAllocator = ALLOCATOR()); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#