[#bsl-hash_set-2constructor-0ef] = xref:bsl.adoc[bsl]::xref:bsl/hash_set.adoc[hash_set]::hash_set :relfileprefix: ../../ :mrdocs: Constructors == Synopses Declared in `<bslstp_hashset.h>` Create an empty hash set. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/hash_set/2constructor-0d.adoc[hash_set](); ---- [.small]#xref:bsl/hash_set/2constructor-0d.adoc[_» more..._]# Create an empty hash set with at least the specified `__n` buckets. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:bsl/hash_set/2constructor-0e6.adoc[hash_set](xref:bsl/hash_set/size_type.adoc[size_type] __n); ---- [.small]#xref:bsl/hash_set/2constructor-0e6.adoc[_» more..._]# Create an empty hash set using the specified `__a` allocator. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:bsl/hash_set/2constructor-0c.adoc[hash_set](xref:bsl/hash_set/allocator_type.adoc[allocator_type] const& __a); ---- [.small]#xref:bsl/hash_set/2constructor-0c.adoc[_» more..._]# Create a hash set with the specified bucket count and allocator. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/hash_set/2constructor-0a3.adoc[hash_set]( xref:bsl/hash_set/size_type.adoc[size_type] __n, xref:bsl/hash_set/allocator_type.adoc[allocator_type] const& __a); ---- [.small]#xref:bsl/hash_set/2constructor-0a3.adoc[_» more..._]# Create a hash set with the specified bucket count and hasher. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/hash_set/2constructor-0bc.adoc[hash_set]( xref:bsl/hash_set/size_type.adoc[size_type] __n, xref:bsl/hash_set/hasher.adoc[hasher] const& __hf); ---- [.small]#xref:bsl/hash_set/2constructor-0bc.adoc[_» more..._]# Copy‐construct a hash set using the specified allocator. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/hash_set/2constructor-0a1.adoc[hash_set]( xref:bsl/hash_set.adoc[_Self] const& __x, xref:bsl/hash_set/allocator_type.adoc[allocator_type] const& __a); ---- [.small]#xref:bsl/hash_set/2constructor-0a1.adoc[_» more..._]# Create a hash set from the specified iterator range. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class _InputIterator> xref:bsl/hash_set/2constructor-035.adoc[hash_set]( _InputIterator __f, _InputIterator __l); ---- [.small]#xref:bsl/hash_set/2constructor-035.adoc[_» more..._]# Create a hash set with the specified bucket count, hasher, and allocator. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/hash_set/2constructor-06.adoc[hash_set]( xref:bsl/hash_set/size_type.adoc[size_type] __n, xref:bsl/hash_set/hasher.adoc[hasher] const& __hf, xref:bsl/hash_set/allocator_type.adoc[allocator_type] const& __a); ---- [.small]#xref:bsl/hash_set/2constructor-06.adoc[_» more..._]# Create a hash set from the specified iterator range. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class _InputIterator> xref:bsl/hash_set/2constructor-0b4.adoc[hash_set]( _InputIterator __f, _InputIterator __l, xref:bsl/hash_set/size_type.adoc[size_type] __n); ---- [.small]#xref:bsl/hash_set/2constructor-0b4.adoc[_» more..._]# Create a hash set from the specified iterator range. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class _InputIterator> xref:bsl/hash_set/2constructor-01.adoc[hash_set]( _InputIterator __f, _InputIterator __l, xref:bsl/hash_set/allocator_type.adoc[allocator_type] const& __a); ---- [.small]#xref:bsl/hash_set/2constructor-01.adoc[_» more..._]# Create a hash set with the specified hasher, equality predicate, and allocator. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/hash_set/2constructor-07c.adoc[hash_set]( xref:bsl/hash_set/size_type.adoc[size_type] __n, xref:bsl/hash_set/hasher.adoc[hasher] const& __hf, xref:bsl/hash_set/key_equal.adoc[key_equal] const& __eql, xref:bsl/hash_set/allocator_type.adoc[allocator_type] const& __a = allocator_type()); ---- [.small]#xref:bsl/hash_set/2constructor-07c.adoc[_» more..._]# Create a hash set from the specified iterator range. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class _InputIterator> xref:bsl/hash_set/2constructor-074.adoc[hash_set]( _InputIterator __f, _InputIterator __l, xref:bsl/hash_set/size_type.adoc[size_type] __n, xref:bsl/hash_set/allocator_type.adoc[allocator_type] const& __a); ---- [.small]#xref:bsl/hash_set/2constructor-074.adoc[_» more..._]# Create a hash set from the specified iterator range. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class _InputIterator> xref:bsl/hash_set/2constructor-09.adoc[hash_set]( _InputIterator __f, _InputIterator __l, xref:bsl/hash_set/size_type.adoc[size_type] __n, xref:bsl/hash_set/hasher.adoc[hasher] const& __hf); ---- [.small]#xref:bsl/hash_set/2constructor-09.adoc[_» more..._]# Create a hash set from the specified iterator range. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class _InputIterator> xref:bsl/hash_set/2constructor-037.adoc[hash_set]( _InputIterator __f, _InputIterator __l, xref:bsl/hash_set/size_type.adoc[size_type] __n, xref:bsl/hash_set/hasher.adoc[hasher] const& __hf, xref:bsl/hash_set/allocator_type.adoc[allocator_type] const& __a); ---- [.small]#xref:bsl/hash_set/2constructor-037.adoc[_» more..._]# Create a hash set from the specified iterator range. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class _InputIterator> xref:bsl/hash_set/2constructor-02.adoc[hash_set]( _InputIterator __f, _InputIterator __l, xref:bsl/hash_set/size_type.adoc[size_type] __n, xref:bsl/hash_set/hasher.adoc[hasher] const& __hf, xref:bsl/hash_set/key_equal.adoc[key_equal] const& __eql, xref:bsl/hash_set/allocator_type.adoc[allocator_type] const& __a = allocator_type()); ---- [.small]#xref:bsl/hash_set/2constructor-02.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#