Create a vector having the same value as the specified original object that uses the specified basicAllocator to supply memory.
Synopsis
Declared in <bslstl_vector.h>
vector(
vector const& original,
ALLOCATOR const& basicAllocator);
Description
Create a vector having the same value as the specified original object that uses the specified basicAllocator to supply memory. This method requires that the (template parameter) type VALUE_TYPE be copy‐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).
Parameters
Name |
Description |
original |
source vector |
basicAllocator |
allocator used to supply memory |
Created with MrDocs