[#boost-urls-segments_encoded_ref-erase] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/segments_encoded_ref.adoc[segments_encoded_ref]::erase :relfileprefix: ../../../ :mrdocs: Erase segments == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/segments_encoded_ref.hpp#L531[boost/url/segments_encoded_ref.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:boost/urls/segments_encoded_base/iterator.adoc[iterator] xref:boost/urls/segments_encoded_ref/erase-006.adoc[erase](xref:boost/urls/segments_encoded_base/iterator.adoc[iterator] pos) noexcept; ---- [.small]#xref:boost/urls/segments_encoded_ref/erase-006.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:boost/urls/segments_encoded_base/iterator.adoc[iterator] xref:boost/urls/segments_encoded_ref/erase-00a.adoc[erase]( xref:boost/urls/segments_encoded_base/iterator.adoc[iterator] first, xref:boost/urls/segments_encoded_base/iterator.adoc[iterator] last) noexcept; ---- [.small]#xref:boost/urls/segments_encoded_ref/erase-00a.adoc[_» more..._]# == Description This function removes a segment. All iterators that are equal to `pos` or come after are invalidated. === Complexity Linear in `this‐>url().encoded_resource().size()`. === Exception Safety Throws nothing. == Return Value An iterator to one past the removed segment. == Parameters |=== | Name | Description | *pos* | An iterator to the element. | *first,* | last The range of segments to erase. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#