:relfileprefix: ../../../
[#06C2D76819C322D48C04D815F29737D17D3F4E71]

= Function segments_encoded_ref::erase

pass:v,q[Erase segments]


== Synopsis

Declared in header `</boost/url/segments_encoded_ref.hpp#L532[boost/url/segments_encoded_ref.hpp,window=blank_]>`

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

== Description

pass:v,q[This function removes a segment.]
pass:v,q[All iterators that are equal to]
pass:v,q[`pos` or come after are invalidated.]

=== Complexity
pass:v,q[Linear in `this->url().encoded_resource().size()`.]

=== Exception Safety
pass:v,q[Throws nothing.]



== Return Value

* `iterator` 


== Parameters

|===
| Name | Type 

| *pos*
| `iterator`

|===



