[#boost-urls-segments_ref-pop_back] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/segments_ref.adoc[segments_ref]::pop_back :relfileprefix: ../../../ :mrdocs: Remove the last segment == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/segments_ref.hpp#L716[boost/url/segments_ref.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void pop_back() noexcept; ---- == Description This function removes the last segment from the container. Iterators to the last segment as well as all end iterators are invalidated. === Preconditions [,cpp] ---- not this->empty() ---- === Exception Safety Throws nothing. [.small]#Created with https://www.mrdocs.com[MrDocs]#