[#bsl-slist-erase_after-00]
= xref:bsl.adoc[bsl]::xref:bsl/slist.adoc[slist]::erase&lowbar;after
:relfileprefix: ../../
:mrdocs:

`erase&lowbar;after` overloads

== Synopses

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

Erase the element immediately after `&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_after-03.adoc[erase&lowbar;after](xref:bsl/slist/iterator.adoc[iterator] &lowbar;&lowbar;pos);
----

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

Erase the open range after `&lowbar;&lowbar;before&lowbar;first` up to `&lowbar;&lowbar;last`&period;


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

[.small]#xref:bsl/slist/erase_after-0b.adoc[_» more&period;&period;&period;_]#

== Return Value

* iterator referring to the element after the erased one
* iterator referring to `&lowbar;&lowbar;last`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *&lowbar;&lowbar;pos*
| position preceding the erased element
| *&lowbar;&lowbar;before&lowbar;first*
| iterator preceding the first erased element
| *&lowbar;&lowbar;last*
| end of the erased range (exclusive)
|===


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