[#absl-linked_hash_set-2constructor-0168]
= xref:absl.adoc[absl]::xref:absl/linked_hash_set.adoc[linked&lowbar;hash&lowbar;set]::linked&lowbar;hash&lowbar;set
:relfileprefix: ../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;absl&sol;container&sol;linked&lowbar;hash&lowbar;set&period;h&gt;`

Constructs an empty set&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/linked_hash_set/2constructor-030.adoc[linked&lowbar;hash&lowbar;set]();
----

[.small]#xref:absl/linked_hash_set/2constructor-030.adoc[_» more&period;&period;&period;_]#

Copy constructor&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/linked_hash_set/2constructor-0c.adoc[linked&lowbar;hash&lowbar;set](xref:absl/linked_hash_set.adoc[linked&lowbar;hash&lowbar;set] const& other);
----

[.small]#xref:absl/linked_hash_set/2constructor-0c.adoc[_» more&period;&period;&period;_]#

Move constructor&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/linked_hash_set/2constructor-058.adoc[linked&lowbar;hash&lowbar;set](xref:absl/linked_hash_set.adoc[linked&lowbar;hash&lowbar;set]&& other) noexcept;
----

[.small]#xref:absl/linked_hash_set/2constructor-058.adoc[_» more&period;&period;&period;_]#

Constructs an empty set with the given allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:absl/linked_hash_set/2constructor-0167.adoc[linked&lowbar;hash&lowbar;set](xref:absl/linked_hash_set/allocator_type.adoc[allocator&lowbar;type] const& alloc);
----

[.small]#xref:absl/linked_hash_set/2constructor-0167.adoc[_» more&period;&period;&period;_]#

Constructs an empty set with the given reservation size and allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/linked_hash_set/2constructor-0f.adoc[linked&lowbar;hash&lowbar;set](
    size&lowbar;t reservation&lowbar;size,
    xref:absl/linked_hash_set/allocator_type.adoc[allocator&lowbar;type] const& alloc);
----

[.small]#xref:absl/linked_hash_set/2constructor-0f.adoc[_» more&period;&period;&period;_]#

Constructs a set from an initializer list&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/linked_hash_set/2constructor-0d.adoc[linked&lowbar;hash&lowbar;set](
    std::initializer&lowbar;list&lt;key&lowbar;type&gt; init,
    xref:absl/linked_hash_set/allocator_type.adoc[allocator&lowbar;type] const& alloc);
----

[.small]#xref:absl/linked_hash_set/2constructor-0d.adoc[_» more&period;&period;&period;_]#

Copy constructor using the given allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/linked_hash_set/2constructor-0a.adoc[linked&lowbar;hash&lowbar;set](
    xref:absl/linked_hash_set.adoc[linked&lowbar;hash&lowbar;set] const& other,
    xref:absl/linked_hash_set/allocator_type.adoc[allocator&lowbar;type] const& alloc);
----

[.small]#xref:absl/linked_hash_set/2constructor-0a.adoc[_» more&period;&period;&period;_]#

Move constructor using the given allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/linked_hash_set/2constructor-00c.adoc[linked&lowbar;hash&lowbar;set](
    xref:absl/linked_hash_set.adoc[linked&lowbar;hash&lowbar;set]&& other,
    xref:absl/linked_hash_set/allocator_type.adoc[allocator&lowbar;type] const& alloc);
----

[.small]#xref:absl/linked_hash_set/2constructor-00c.adoc[_» more&period;&period;&period;_]#

Constructs an empty set with the given reservation size, hash, and allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/linked_hash_set/2constructor-0b.adoc[linked&lowbar;hash&lowbar;set](
    size&lowbar;t reservation&lowbar;size,
    xref:absl/linked_hash_set/hasher.adoc[hasher] const& hash,
    xref:absl/linked_hash_set/allocator_type.adoc[allocator&lowbar;type] const& alloc);
----

[.small]#xref:absl/linked_hash_set/2constructor-0b.adoc[_» more&period;&period;&period;_]#

Constructs a set from an initializer list&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/linked_hash_set/2constructor-04f.adoc[linked&lowbar;hash&lowbar;set](
    std::initializer&lowbar;list&lt;key&lowbar;type&gt; init,
    size&lowbar;t reservation&lowbar;size,
    xref:absl/linked_hash_set/allocator_type.adoc[allocator&lowbar;type] const& alloc);
----

[.small]#xref:absl/linked_hash_set/2constructor-04f.adoc[_» more&period;&period;&period;_]#

Constructs a set from the range `&lsqb;first, last)&rsqb;`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class InputIt&gt;
xref:absl/linked_hash_set/2constructor-07.adoc[linked&lowbar;hash&lowbar;set](
    InputIt first,
    InputIt last,
    xref:absl/linked_hash_set/allocator_type.adoc[allocator&lowbar;type] const& alloc);
----

[.small]#xref:absl/linked_hash_set/2constructor-07.adoc[_» more&period;&period;&period;_]#

Constructs an empty set with the given reservation size and functors&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:absl/linked_hash_set/2constructor-044.adoc[linked&lowbar;hash&lowbar;set](
    size&lowbar;t reservation&lowbar;size,
    xref:absl/linked_hash_set/hasher.adoc[hasher] const& hash = hasher(),
    xref:absl/linked_hash_set/key_equal.adoc[key&lowbar;equal] const& eq = key&lowbar;equal(),
    xref:absl/linked_hash_set/allocator_type.adoc[allocator&lowbar;type] const& alloc = allocator&lowbar;type());
----

[.small]#xref:absl/linked_hash_set/2constructor-044.adoc[_» more&period;&period;&period;_]#

Constructs a set from an initializer list&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/linked_hash_set/2constructor-031.adoc[linked&lowbar;hash&lowbar;set](
    std::initializer&lowbar;list&lt;key&lowbar;type&gt; init,
    size&lowbar;t reservation&lowbar;size,
    xref:absl/linked_hash_set/hasher.adoc[hasher] const& hash,
    xref:absl/linked_hash_set/allocator_type.adoc[allocator&lowbar;type] const& alloc);
----

[.small]#xref:absl/linked_hash_set/2constructor-031.adoc[_» more&period;&period;&period;_]#

Constructs a set from the range `&lsqb;first, last)&rsqb;`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class InputIter&gt;
xref:absl/linked_hash_set/2constructor-03b.adoc[linked&lowbar;hash&lowbar;set](
    InputIter first,
    InputIter last,
    size&lowbar;t reservation&lowbar;size,
    xref:absl/linked_hash_set/allocator_type.adoc[allocator&lowbar;type] const& alloc);
----

[.small]#xref:absl/linked_hash_set/2constructor-03b.adoc[_» more&period;&period;&period;_]#

Constructs a set from an initializer list&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/linked_hash_set/2constructor-053.adoc[linked&lowbar;hash&lowbar;set](
    std::initializer&lowbar;list&lt;key&lowbar;type&gt; init,
    size&lowbar;t reservation&lowbar;size = 0,
    xref:absl/linked_hash_set/hasher.adoc[hasher] const& hash = hasher(),
    xref:absl/linked_hash_set/key_equal.adoc[key&lowbar;equal] const& eq = key&lowbar;equal(),
    xref:absl/linked_hash_set/allocator_type.adoc[allocator&lowbar;type] const& alloc = allocator&lowbar;type());
----

[.small]#xref:absl/linked_hash_set/2constructor-053.adoc[_» more&period;&period;&period;_]#

Constructs a set from the range `&lsqb;first, last)&rsqb;`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class InputIter&gt;
xref:absl/linked_hash_set/2constructor-002.adoc[linked&lowbar;hash&lowbar;set](
    InputIter first,
    InputIter last,
    size&lowbar;t reservation&lowbar;size,
    xref:absl/linked_hash_set/hasher.adoc[hasher] const& hash,
    xref:absl/linked_hash_set/allocator_type.adoc[allocator&lowbar;type] const& alloc);
----

[.small]#xref:absl/linked_hash_set/2constructor-002.adoc[_» more&period;&period;&period;_]#

Constructs a set from the range `&lsqb;first, last)&rsqb;`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class InputIt&gt;
xref:absl/linked_hash_set/2constructor-00d.adoc[linked&lowbar;hash&lowbar;set](
    InputIt first,
    InputIt last,
    size&lowbar;t reservation&lowbar;size = 0,
    xref:absl/linked_hash_set/hasher.adoc[hasher] const& hash = hasher(),
    xref:absl/linked_hash_set/key_equal.adoc[key&lowbar;equal] const& eq = key&lowbar;equal(),
    xref:absl/linked_hash_set/allocator_type.adoc[allocator&lowbar;type] const& alloc = allocator&lowbar;type());
----

[.small]#xref:absl/linked_hash_set/2constructor-00d.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| The set to copy from&period;
| *alloc*
| The allocator to use&period;
| *reservation&lowbar;size*
| The number of elements to reserve space for&period;
| *init*
| The initializer list of elements&period;
| *hash*
| The hash functor to use&period;
| *first*
| Iterator to the first element in the range&period;
| *last*
| Iterator past the last element in the range&period;
| *eq*
| The key equality functor to use&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
