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

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

== Synopsis

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

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

== Return Value

iterator referring to `&lowbar;&lowbar;last`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *&lowbar;&lowbar;first*
| beginning of the erased range
| *&lowbar;&lowbar;last*
| end of the erased range (exclusive)
|===


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