:relfileprefix: ../../../
[#boost-urls-segments_encoded_ref-pop_back]

== xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/segments_encoded_ref.adoc[pass:[segments_encoded_ref]]::pop_back


Remove the last segment


=== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/segments_encoded_ref.hpp#L772[boost/url/segments_encoded_ref.hpp,window=blank_]>`

[source,cpp,subs="verbatim,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.
[,cpp]
----
not this->empty()
----

=== Throws nothing.








