[#absl-linked_hash_set-2constructor-0168] = xref:absl.adoc[absl]::xref:absl/linked_hash_set.adoc[linked_hash_set]::linked_hash_set :relfileprefix: ../../ :mrdocs: Constructors == Synopses Declared in `<absl/container/linked_hash_set.h>` Constructs an empty set. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/linked_hash_set/2constructor-030.adoc[linked_hash_set](); ---- [.small]#xref:absl/linked_hash_set/2constructor-030.adoc[_» more..._]# Copy constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/linked_hash_set/2constructor-0c.adoc[linked_hash_set](xref:absl/linked_hash_set.adoc[linked_hash_set] const& other); ---- [.small]#xref:absl/linked_hash_set/2constructor-0c.adoc[_» more..._]# Move constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/linked_hash_set/2constructor-058.adoc[linked_hash_set](xref:absl/linked_hash_set.adoc[linked_hash_set]&& other) noexcept; ---- [.small]#xref:absl/linked_hash_set/2constructor-058.adoc[_» more..._]# Constructs an empty set with the given allocator. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:absl/linked_hash_set/2constructor-0167.adoc[linked_hash_set](xref:absl/linked_hash_set/allocator_type.adoc[allocator_type] const& alloc); ---- [.small]#xref:absl/linked_hash_set/2constructor-0167.adoc[_» more..._]# Constructs an empty set with the given reservation size and allocator. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/linked_hash_set/2constructor-0f.adoc[linked_hash_set]( size_t reservation_size, xref:absl/linked_hash_set/allocator_type.adoc[allocator_type] const& alloc); ---- [.small]#xref:absl/linked_hash_set/2constructor-0f.adoc[_» more..._]# Constructs a set from an initializer list. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/linked_hash_set/2constructor-0d.adoc[linked_hash_set]( std::initializer_list<key_type> init, xref:absl/linked_hash_set/allocator_type.adoc[allocator_type] const& alloc); ---- [.small]#xref:absl/linked_hash_set/2constructor-0d.adoc[_» more..._]# Copy constructor using the given allocator. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/linked_hash_set/2constructor-0a.adoc[linked_hash_set]( xref:absl/linked_hash_set.adoc[linked_hash_set] const& other, xref:absl/linked_hash_set/allocator_type.adoc[allocator_type] const& alloc); ---- [.small]#xref:absl/linked_hash_set/2constructor-0a.adoc[_» more..._]# Move constructor using the given allocator. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/linked_hash_set/2constructor-00c.adoc[linked_hash_set]( xref:absl/linked_hash_set.adoc[linked_hash_set]&& other, xref:absl/linked_hash_set/allocator_type.adoc[allocator_type] const& alloc); ---- [.small]#xref:absl/linked_hash_set/2constructor-00c.adoc[_» more..._]# Constructs an empty set with the given reservation size, hash, and allocator. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/linked_hash_set/2constructor-0b.adoc[linked_hash_set]( size_t reservation_size, xref:absl/linked_hash_set/hasher.adoc[hasher] const& hash, xref:absl/linked_hash_set/allocator_type.adoc[allocator_type] const& alloc); ---- [.small]#xref:absl/linked_hash_set/2constructor-0b.adoc[_» more..._]# Constructs a set from an initializer list. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/linked_hash_set/2constructor-04f.adoc[linked_hash_set]( std::initializer_list<key_type> init, size_t reservation_size, xref:absl/linked_hash_set/allocator_type.adoc[allocator_type] const& alloc); ---- [.small]#xref:absl/linked_hash_set/2constructor-04f.adoc[_» more..._]# Constructs a set from the range `[first, last)]`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class InputIt> xref:absl/linked_hash_set/2constructor-07.adoc[linked_hash_set]( InputIt first, InputIt last, xref:absl/linked_hash_set/allocator_type.adoc[allocator_type] const& alloc); ---- [.small]#xref:absl/linked_hash_set/2constructor-07.adoc[_» more..._]# Constructs an empty set with the given reservation size and functors. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:absl/linked_hash_set/2constructor-044.adoc[linked_hash_set]( size_t reservation_size, xref:absl/linked_hash_set/hasher.adoc[hasher] const& hash = hasher(), xref:absl/linked_hash_set/key_equal.adoc[key_equal] const& eq = key_equal(), xref:absl/linked_hash_set/allocator_type.adoc[allocator_type] const& alloc = allocator_type()); ---- [.small]#xref:absl/linked_hash_set/2constructor-044.adoc[_» more..._]# Constructs a set from an initializer list. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/linked_hash_set/2constructor-031.adoc[linked_hash_set]( std::initializer_list<key_type> init, size_t reservation_size, xref:absl/linked_hash_set/hasher.adoc[hasher] const& hash, xref:absl/linked_hash_set/allocator_type.adoc[allocator_type] const& alloc); ---- [.small]#xref:absl/linked_hash_set/2constructor-031.adoc[_» more..._]# Constructs a set from the range `[first, last)]`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class InputIter> xref:absl/linked_hash_set/2constructor-03b.adoc[linked_hash_set]( InputIter first, InputIter last, size_t reservation_size, xref:absl/linked_hash_set/allocator_type.adoc[allocator_type] const& alloc); ---- [.small]#xref:absl/linked_hash_set/2constructor-03b.adoc[_» more..._]# Constructs a set from an initializer list. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/linked_hash_set/2constructor-053.adoc[linked_hash_set]( std::initializer_list<key_type> init, size_t reservation_size = 0, xref:absl/linked_hash_set/hasher.adoc[hasher] const& hash = hasher(), xref:absl/linked_hash_set/key_equal.adoc[key_equal] const& eq = key_equal(), xref:absl/linked_hash_set/allocator_type.adoc[allocator_type] const& alloc = allocator_type()); ---- [.small]#xref:absl/linked_hash_set/2constructor-053.adoc[_» more..._]# Constructs a set from the range `[first, last)]`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class InputIter> xref:absl/linked_hash_set/2constructor-002.adoc[linked_hash_set]( InputIter first, InputIter last, size_t reservation_size, xref:absl/linked_hash_set/hasher.adoc[hasher] const& hash, xref:absl/linked_hash_set/allocator_type.adoc[allocator_type] const& alloc); ---- [.small]#xref:absl/linked_hash_set/2constructor-002.adoc[_» more..._]# Constructs a set from the range `[first, last)]`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class InputIt> xref:absl/linked_hash_set/2constructor-00d.adoc[linked_hash_set]( InputIt first, InputIt last, size_t reservation_size = 0, xref:absl/linked_hash_set/hasher.adoc[hasher] const& hash = hasher(), xref:absl/linked_hash_set/key_equal.adoc[key_equal] const& eq = key_equal(), xref:absl/linked_hash_set/allocator_type.adoc[allocator_type] const& alloc = allocator_type()); ---- [.small]#xref:absl/linked_hash_set/2constructor-00d.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *other* | The set to copy from. | *alloc* | The allocator to use. | *reservation_size* | The number of elements to reserve space for. | *init* | The initializer list of elements. | *hash* | The hash functor to use. | *first* | Iterator to the first element in the range. | *last* | Iterator past the last element in the range. | *eq* | The key equality functor to use. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#