[#absl-linked_hash_map-erase-01] = xref:absl.adoc[absl]::xref:absl/linked_hash_map.adoc[linked_hash_map]::erase :relfileprefix: ../../ :mrdocs: `erase` overloads == Synopses Declared in `<absl/container/linked_hash_map.h>` Removes the element at the given position. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/linked_hash_map/iterator.adoc[iterator] xref:absl/linked_hash_map/erase-08.adoc[erase](xref:absl/linked_hash_map/const_iterator.adoc[const_iterator] position); ---- [.small]#xref:absl/linked_hash_map/erase-08.adoc[_» more..._]# Removes the element at the given position. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/linked_hash_map/iterator.adoc[iterator] xref:absl/linked_hash_map/erase-03.adoc[erase](xref:absl/linked_hash_map/iterator.adoc[iterator] position); ---- [.small]#xref:absl/linked_hash_map/erase-03.adoc[_» more..._]# Removes the element with the given key. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class K = xref:absl/linked_hash_map/key_type.adoc[key_type]> xref:absl/linked_hash_map/size_type.adoc[size_type] xref:absl/linked_hash_map/erase-0e.adoc[erase](xref:absl/linked_hash_map.adoc[key_arg<K>] const& key); ---- [.small]#xref:absl/linked_hash_map/erase-0e.adoc[_» more..._]# Removes the elements in the range `[first, last)]`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/linked_hash_map/iterator.adoc[iterator] xref:absl/linked_hash_map/erase-0a.adoc[erase]( xref:absl/linked_hash_map/const_iterator.adoc[const_iterator] first, xref:absl/linked_hash_map/const_iterator.adoc[const_iterator] last); ---- [.small]#xref:absl/linked_hash_map/erase-0a.adoc[_» more..._]# Removes the elements in the range `[first, last)]`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/linked_hash_map/iterator.adoc[iterator] xref:absl/linked_hash_map/erase-0c.adoc[erase]( xref:absl/linked_hash_map/iterator.adoc[iterator] first, xref:absl/linked_hash_map/iterator.adoc[iterator] last); ---- [.small]#xref:absl/linked_hash_map/erase-0c.adoc[_» more..._]# == Return Value * An iterator to the element following the erased element. * The number of elements removed (0 or 1). * An iterator to the element following the last erased element. == 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]#