Create a map with the same value as original.
Synopsis
Declared in <bslstl_map.h>
map(map const& original);
Description
Create a map having the same value as the specified original object. Use a copy of original.key_comp() to order the key‐value pairs contained in this map. Use the allocator returned by 'bsl::allocator_traits<ALLOCATOR>:: select_on_container_copy_construction(original.get_allocator())' to allocate memory. If the (template parameter) type ALLOCATOR is bsl::allocator (the default), the currently installed default allocator is used. This method requires that the (template parameter) types KEY and VALUE both be copy‐insertable into this map (see {Requirements on KEY and VALUE}).
Parameters
Name |
Description |
original |
map to copy |
Created with MrDocs