[#absl-linked_hash_set-erase-09] = xref:absl.adoc[absl]::xref:absl/linked_hash_set.adoc[linked_hash_set]::erase :relfileprefix: ../../ :mrdocs: `erase` overloads == Synopses Declared in `<absl/container/linked_hash_set.h>` Removes the element at the given position. [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_iterator] position); ---- [.small]#xref:absl/linked_hash_set/erase-01.adoc[_» more..._]# Removes the element with the given key. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename K = xref:absl/linked_hash_set/key_type.adoc[key_type]> xref:absl/linked_hash_set/size_type.adoc[size_type] xref:absl/linked_hash_set/erase-07.adoc[erase](xref:absl/linked_hash_set.adoc[key_arg<K>] const& key); ---- [.small]#xref:absl/linked_hash_set/erase-07.adoc[_» more..._]# Removes the elements in the range `[first, last)]`. [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_iterator] first, xref:absl/linked_hash_set/const_iterator.adoc[const_iterator] last); ---- [.small]#xref:absl/linked_hash_set/erase-0a.adoc[_» more..._]# == Return Value * An iterator to the element following the erased one. * The number of elements removed (0 or 1). * An iterator to the element following the last erased one. == Parameters [cols="1,4"] |=== | Name| Description | *position* | An iterator to the element to erase. | *key* | The key to erase. | *first* | An iterator to the first element to erase. | *last* | An iterator past the last element to erase. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#