[#absl-linked_hash_map-2constructor-031]
= xref:absl.adoc[absl]::xref:absl/linked_hash_map.adoc[linked&lowbar;hash&lowbar;map]::linked&lowbar;hash&lowbar;map
:relfileprefix: ../../
:mrdocs:

Constructors

== Synopses

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

Constructs an empty map&period;


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

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

Constructs a map by copying another map&period;


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

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

Constructs a map by moving from another map&period;


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

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

Constructs an empty map with the given allocator&period;


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

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

Constructs an empty map with the given capacity and allocator&period;


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

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

Constructs a map from an initializer list&period;


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

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

Constructs a map by copying another map, using the given allocator&period;


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

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

Constructs a map by moving from another map, using the given allocator&period;


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

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

Constructs an empty map with the given capacity, hash, and allocator&period;


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

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

Constructs a map from an initializer list&period;


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

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

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


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

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

Constructs an empty map with the given capacity, hash, equality, and allocator&period;


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

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

Constructs a map from an initializer list&period;


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

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

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


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

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

Constructs a map from an initializer list&period;


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

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

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


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

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

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


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

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

== Parameters

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


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