Create a map with the value of original using basicAllocator.
Synopsis
Declared in <bslstl_map.h>
map(
map const& original,
ALLOCATOR const& basicAllocator);
Description
Create a map having the same value as the specified original object that uses the specified basicAllocator to supply memory. Use a copy of original.key_comp() to order the key‐value pairs contained in this map. This method requires that the (template parameter) types KEY and VALUE both be copy‐insertable into this map (see {Requirements on KEY and VALUE}). Note that a bslma::Allocator * can be supplied for basicAllocator if the (template parameter) ALLOCATOR is bsl::allocator (the default).
Parameters
Name |
Description |
original |
map to copy |
basicAllocator |
allocator used to supply memory |
Created with MrDocs