bsl::hashtable::hashtable

Constructors

Synopses

Declared in <bslstp_hashtable.h>

Copy-construct a hash table from the specified source table.

hashtable(_Self const& original);
» more...

Copy-construct a hash table using the specified allocator.

hashtable(
    _Self const& __ht,
    allocator_type const& __a);
» more...

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

hashtable(
    size_type __n,
    _HF const& __hf,
    _EqK const& __eql,
    allocator_type const& __a = allocator_type());
» more...

Create a hash table with the specified functors and allocator.

hashtable(
    size_type __n,
    _HF const& __hf,
    _EqK const& __eql,
    _ExK const& __ext,
    allocator_type const& __a = allocator_type());
» more...

Parameters

NameDescription
originalhash table whose value is copied
__hthash table whose value is copied
__aallocator used to supply memory
__nminimum number of buckets to create
__hfhash functor
__eqlkey-equality predicate
__extkey-extraction functor