[#bsl-hash_map-2constructor-0e5] = xref:bsl.adoc[bsl]::xref:bsl/hash_map.adoc[hash_map]::hash_map :relfileprefix: ../../ :mrdocs: Constructors == Synopses Declared in `<bslstp_hashmap.h>` Create an empty hash map. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/hash_map/2constructor-070.adoc[hash_map](); ---- [.small]#xref:bsl/hash_map/2constructor-070.adoc[_» more..._]# Create an empty hash map with at least the specified `__n` buckets. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:bsl/hash_map/2constructor-06a.adoc[hash_map](xref:bsl/hash_map/size_type.adoc[size_type] __n); ---- [.small]#xref:bsl/hash_map/2constructor-06a.adoc[_» more..._]# Create an empty hash map using the specified `__a` allocator. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:bsl/hash_map/2constructor-031.adoc[hash_map](xref:bsl/hash_map/allocator_type.adoc[allocator_type] const& __a); ---- [.small]#xref:bsl/hash_map/2constructor-031.adoc[_» more..._]# Create a hash map with the specified bucket count and allocator. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/hash_map/2constructor-094.adoc[hash_map]( xref:bsl/hash_map/size_type.adoc[size_type] __n, xref:bsl/hash_map/allocator_type.adoc[allocator_type] const& __a); ---- [.small]#xref:bsl/hash_map/2constructor-094.adoc[_» more..._]# Create a hash map with the specified bucket count and hasher. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/hash_map/2constructor-090.adoc[hash_map]( xref:bsl/hash_map/size_type.adoc[size_type] __n, xref:bsl/hash_map/hasher.adoc[hasher] const& __hf); ---- [.small]#xref:bsl/hash_map/2constructor-090.adoc[_» more..._]# Copy‐construct a hash map using the specified allocator. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/hash_map/2constructor-08.adoc[hash_map]( xref:bsl/hash_map.adoc[_Self] const& __x, xref:bsl/hash_map/allocator_type.adoc[allocator_type] const& __a); ---- [.small]#xref:bsl/hash_map/2constructor-08.adoc[_» more..._]# Create a hash map from the specified iterator range. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class _InputIterator> xref:bsl/hash_map/2constructor-02.adoc[hash_map]( _InputIterator __f, _InputIterator __l); ---- [.small]#xref:bsl/hash_map/2constructor-02.adoc[_» more..._]# Create a hash map with the specified bucket count, hasher, and allocator. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/hash_map/2constructor-0ec.adoc[hash_map]( xref:bsl/hash_map/size_type.adoc[size_type] __n, xref:bsl/hash_map/hasher.adoc[hasher] const& __hf, xref:bsl/hash_map/allocator_type.adoc[allocator_type] const& __a); ---- [.small]#xref:bsl/hash_map/2constructor-0ec.adoc[_» more..._]# Create a hash map from the specified iterator range. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class _InputIterator> xref:bsl/hash_map/2constructor-05.adoc[hash_map]( _InputIterator __f, _InputIterator __l, xref:bsl/hash_map/size_type.adoc[size_type] __n); ---- [.small]#xref:bsl/hash_map/2constructor-05.adoc[_» more..._]# Create a hash map from the specified iterator range. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class _InputIterator> xref:bsl/hash_map/2constructor-096.adoc[hash_map]( _InputIterator __f, _InputIterator __l, xref:bsl/hash_map/allocator_type.adoc[allocator_type] const& __a); ---- [.small]#xref:bsl/hash_map/2constructor-096.adoc[_» more..._]# Create a hash map with the specified hasher, equality predicate, and allocator. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/hash_map/2constructor-0c.adoc[hash_map]( xref:bsl/hash_map/size_type.adoc[size_type] __n, xref:bsl/hash_map/hasher.adoc[hasher] const& __hf, xref:bsl/hash_map/key_equal.adoc[key_equal] const& __eql, xref:bsl/hash_map/allocator_type.adoc[allocator_type] const& __a = allocator_type()); ---- [.small]#xref:bsl/hash_map/2constructor-0c.adoc[_» more..._]# Create a hash map from the specified iterator range. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class _InputIterator> xref:bsl/hash_map/2constructor-06d.adoc[hash_map]( _InputIterator __f, _InputIterator __l, xref:bsl/hash_map/size_type.adoc[size_type] __n, xref:bsl/hash_map/allocator_type.adoc[allocator_type] const& __a); ---- [.small]#xref:bsl/hash_map/2constructor-06d.adoc[_» more..._]# Create a hash map from the specified iterator range. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class _InputIterator> xref:bsl/hash_map/2constructor-0a.adoc[hash_map]( _InputIterator __f, _InputIterator __l, xref:bsl/hash_map/size_type.adoc[size_type] __n, xref:bsl/hash_map/hasher.adoc[hasher] const& __hf); ---- [.small]#xref:bsl/hash_map/2constructor-0a.adoc[_» more..._]# Create a hash map from the specified iterator range. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class _InputIterator> xref:bsl/hash_map/2constructor-039.adoc[hash_map]( _InputIterator __f, _InputIterator __l, xref:bsl/hash_map/size_type.adoc[size_type] __n, xref:bsl/hash_map/hasher.adoc[hasher] const& __hf, xref:bsl/hash_map/allocator_type.adoc[allocator_type] const& __a); ---- [.small]#xref:bsl/hash_map/2constructor-039.adoc[_» more..._]# Create a hash map from the specified iterator range. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class _InputIterator> xref:bsl/hash_map/2constructor-07d.adoc[hash_map]( _InputIterator __f, _InputIterator __l, xref:bsl/hash_map/size_type.adoc[size_type] __n, xref:bsl/hash_map/hasher.adoc[hasher] const& __hf, xref:bsl/hash_map/key_equal.adoc[key_equal] const& __eql, xref:bsl/hash_map/allocator_type.adoc[allocator_type] const& __a = allocator_type()); ---- [.small]#xref:bsl/hash_map/2constructor-07d.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#