bsl::map::map

Create an empty map using comparator and basicAllocator.

Synopsis

Declared in <bslstl_map.h>

explicit
map(
    COMPARATOR const& comparator,
    ALLOCATOR const& basicAllocator = ALLOCATOR());

Description

Create an empty map using the specified comparator and basicAllocator.

Parameters

NameDescription
comparatorfunctor used to order keys
basicAllocatorallocator used to supply memory