bsl::vector::vector

Create a vector by moving from the specified original.

Synopsis

Declared in <bslstl_vector.h>

vector(BloombergLP::bslmf::MovableRef<vector> original) noexcept;

Description

Create a vector having the same value as the specified original object by moving (in constant time) the contents of original to the new vector. The allocator associated with original is propagated for use in the newly-created vector. original is left in a valid but unspecified state.

Parameters

NameDescription
originalvector whose contents are moved into this vector