Copy‐construct a vector from original.

Synopsis

Declared in <bslstl_vector.h>

vector(vector const& original);

Description

Create a vector having the same value as the specified original object. Use the allocator returned by 'bsl::allocator_traits<ALLOCATOR>:: select_on_container_copy_construction(original.get_allocator())' to allocate memory. This method requires that the (template parameter) type VALUE_TYPE be copy‐insertable into this vector (see {Requirements on VALUE_TYPE}).

Parameters

Name

Description

original

vector whose value to copy

Created with MrDocs