[#bsl-vector-0aa9-2constructor-01] = xref:bsl.adoc[bsl]::xref:bsl/vector-0aa9.adoc[vector<unsigned short>]::vector :relfileprefix: ../../ :mrdocs: Create a vector having the same value as the specified `original` object that uses the specified `basicAllocator` to supply memory. The contents of `original` are moved (in constant time) to the new vector if `basicAllocator == original.get_allocator()`, and are move‐inserted (in linear time) using `basicAllocator` otherwise. `original` is left in a valid but unspecified state. This method requires that the (template parameter) type `VALUE_TYPE` be `move‐insertable` into this vector (see {Requirements on `VALUE_TYPE`}). Note that a `bslma::Allocator *` can be supplied for `basicAllocator` if the (template parameter) type `ALLOCATOR` is `bsl::allocator` (the default). == Synopsis Declared in `<bslstl_vector.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- vector( xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<vector<unsigned short>>] original, type_identity<allocator<unsigned short>>::type const& basicAllocator); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#