Create an empty map that uses basicAllocator.

Synopsis

Declared in <bslstl_map.h>

explicit
map(ALLOCATOR const& basicAllocator);

Description

Create an empty map that uses the specified basicAllocator to supply memory. Use a default‐constructed object of the (template parameter) type COMPARATOR to order the key‐value pairs contained in this map. Note that a bslma::Allocator * can be supplied for basicAllocator if the (template parameter) ALLOCATOR is bsl::allocator (the default).

Parameters

Name

Description

basicAllocator

allocator used to supply memory

Created with MrDocs