[#boost-urls-segments_ref-erase-0e]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/segments_ref.adoc[segments&lowbar;ref]::erase
:relfileprefix: ../../../
:mrdocs:

Erase segments

== Synopses

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/segments_ref.hpp#Lundefined[boost&sol;url&sol;segments&lowbar;ref&period;hpp]&gt;`

Erase segments


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:boost/urls/segments_base/iterator.adoc[iterator]
xref:boost/urls/segments_ref/erase-0af2.adoc[erase](xref:boost/urls/segments_base/iterator.adoc[iterator] pos) noexcept;
----

[.small]#xref:boost/urls/segments_ref/erase-0af2.adoc[_» more&period;&period;&period;_]#

Erase segments


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:boost/urls/segments_base/iterator.adoc[iterator]
xref:boost/urls/segments_ref/erase-0af5.adoc[erase](
    xref:boost/urls/segments_base/iterator.adoc[iterator] first,
    xref:boost/urls/segments_base/iterator.adoc[iterator] last) noexcept;
----

[.small]#xref:boost/urls/segments_ref/erase-0af5.adoc[_» more&period;&period;&period;_]#

== Return Value

* An iterator to one past the removed segment&period;
* An iterator to one past the removed range&period;

== Parameters

[cols="1,4"]
|===
|Name|Description

| *pos*
| An iterator to the segment&period;
| *first*
| The beginning of the range to remove&period;
| *last*
| The end of the range to remove&period;
|===


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