bsl::map::map

Create a map from values using basicAllocator.

Synopsis

Declared in <bslstl_map.h>

map(
    std::initializer_list<value_type> values,
    ALLOCATOR const& basicAllocator);

Description

Create a map containing the elements from the specified values initializer list, using the specified basicAllocator to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

Parameters

NameDescription
valuesinitializer list of elements to insert
basicAllocatorallocator used to supply memory