Constructors
Synopses
Declared in <bslstp_hashtable.h>
Copy‐construct a hash table from the specified source table.
hashtable(_Self const& original);
Copy‐construct a hash table using the specified allocator.
hashtable(
_Self const& __ht,
allocator_type const& __a);
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());
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());
Parameters
Name |
Description |
original |
hash table whose value is copied |
__ht |
hash table whose value is copied |
__a |
allocator used to supply memory |
__n |
minimum number of buckets to create |
__hf |
hash functor |
__eql |
key‐equality predicate |
__ext |
key‐extraction functor |
Created with MrDocs