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

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

== Synopsis

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

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

== Return Value

iterator referring to the element after the erased one

== Parameters

[cols="1,4"]
|===
| Name| Description
| *&lowbar;&lowbar;pos*
| position preceding the erased element
|===


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