Constructors

Synopses

Declared in <bslstp_hashmap.h>

Create an empty hash map.

Create an empty hash map with at least the specified __n buckets.

explicit
hash_map(size_type __n);

Create an empty hash map that uses allocator __a.

explicit
hash_map(allocator_type const& __a);

Create a hash map with the specified bucket count and allocator.

hash_map(
    size_type __n,
    allocator_type const& __a);

Create a hash map with the specified bucket count and hasher.

hash_map(
    size_type __n,
    hasher const& __hf);

Copy‐construct a hash map using the specified allocator.

hash_map(
    _Self const& __x,
    allocator_type const& __a);

Create a hash map from the specified iterator range.

template<class _InputIterator>
hash_map(
    _InputIterator __f,
    _InputIterator __l);

Create a hash map with the specified bucket count, hasher, and allocator.

hash_map(
    size_type __n,
    hasher const& __hf,
    allocator_type const& __a);

Create a hash map from the specified iterator range.

template<class _InputIterator>
hash_map(
    _InputIterator __f,
    _InputIterator __l,
    size_type __n);

Create a hash map from the specified iterator range.

template<class _InputIterator>
hash_map(
    _InputIterator __f,
    _InputIterator __l,
    allocator_type const& __a);

Create a hash map with the specified hasher, equality predicate, and allocator.

hash_map(
    size_type __n,
    hasher const& __hf,
    key_equal const& __eql,
    allocator_type const& __a = allocator_type());

Create a hash map from the specified iterator range.

template<class _InputIterator>
hash_map(
    _InputIterator __f,
    _InputIterator __l,
    size_type __n,
    allocator_type const& __a);

Create a hash map from the specified iterator range.

template<class _InputIterator>
hash_map(
    _InputIterator __f,
    _InputIterator __l,
    size_type __n,
    hasher const& __hf);

Create a hash map from the specified iterator range.

template<class _InputIterator>
hash_map(
    _InputIterator __f,
    _InputIterator __l,
    size_type __n,
    hasher const& __hf,
    allocator_type const& __a);

Create a hash map from the specified iterator range.

template<class _InputIterator>
hash_map(
    _InputIterator __f,
    _InputIterator __l,
    size_type __n,
    hasher const& __hf,
    key_equal const& __eql,
    allocator_type const& __a = allocator_type());

Parameters

Name

Description

__n

minimum number of buckets to create

__a

allocator used to supply memory

__hf

hash functor

__x

hash map whose value is copied

__f

beginning of the input range

__l

end of the input range

__eql

key‐equality predicate

Created with MrDocs