[#bsl-vector-00d-2constructor-0c8a] = xref:bsl.adoc[bsl]::xref:bsl/vector-00d.adoc[vector]::vector :relfileprefix: ../../ :mrdocs: Create an empty vector that uses the specified `basicAllocator`. == Synopsis Declared in `<bslstl_vector.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit vector(ALLOCATOR const& basicAllocator) noexcept; ---- == Description Create an empty vector. 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. Note that a `bslma::Allocator *` can be supplied for `basicAllocator` if the type `ALLOCATOR` is `bsl::allocator` (the default). == Parameters [cols="1,4"] |=== | Name| Description | *basicAllocator* | allocator used to supply memory |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#