[#bsl-slist-erase-07]
= xref:bsl.adoc[bsl]::xref:bsl/slist.adoc[slist]::erase
:relfileprefix: ../../
:mrdocs:

`erase` overloads

== Synopses

Declared in `&lt;bslstp&lowbar;slist&period;h&gt;`

Erase the element at `&lowbar;&lowbar;pos` and return the following iterator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/slist/iterator.adoc[iterator]
xref:bsl/slist/erase-05.adoc[erase](xref:bsl/slist/iterator.adoc[iterator] &lowbar;&lowbar;pos);
----

[.small]#xref:bsl/slist/erase-05.adoc[_» more&period;&period;&period;_]#

Erase the elements in the half&hyphen;open range &lsqb;`&lowbar;&lowbar;first`, `&lowbar;&lowbar;last`)&period;&rsqb;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/slist/iterator.adoc[iterator]
xref:bsl/slist/erase-03.adoc[erase](
    xref:bsl/slist/iterator.adoc[iterator] &lowbar;&lowbar;first,
    xref:bsl/slist/iterator.adoc[iterator] &lowbar;&lowbar;last);
----

[.small]#xref:bsl/slist/erase-03.adoc[_» more&period;&period;&period;_]#


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