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

`erase` overloads

== Synopses

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

Removes the element at the given position&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/linked_hash_set/iterator.adoc[iterator]
xref:absl/linked_hash_set/erase-01.adoc[erase](xref:absl/linked_hash_set/const_iterator.adoc[const&lowbar;iterator] position);
----

[.small]#xref:absl/linked_hash_set/erase-01.adoc[_» more&period;&period;&period;_]#

Removes the element with the given key&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename K = xref:absl/linked_hash_set/key_type.adoc[key&lowbar;type]&gt;
xref:absl/linked_hash_set/size_type.adoc[size&lowbar;type]
xref:absl/linked_hash_set/erase-07.adoc[erase](xref:absl/linked_hash_set.adoc[key&lowbar;arg&lt;K&gt;] const& key);
----

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

Removes the elements in the range `&lsqb;first, last)&rsqb;`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/linked_hash_set/iterator.adoc[iterator]
xref:absl/linked_hash_set/erase-0a.adoc[erase](
    xref:absl/linked_hash_set/const_iterator.adoc[const&lowbar;iterator] first,
    xref:absl/linked_hash_set/const_iterator.adoc[const&lowbar;iterator] last);
----

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

== Return Value

* An iterator to the element following the erased one&period;
* The number of elements removed (0 or 1)&period;
* An iterator to the element following the last erased one&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *position*
| An iterator to the element to erase&period;
| *key*
| The key to erase&period;
| *first*
| An iterator to the first element to erase&period;
| *last*
| An iterator past the last element to erase&period;
|===


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