[#boost-urls-segments_ref-pop_back]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/segments_ref.adoc[segments&lowbar;ref]::pop&lowbar;back
:relfileprefix: ../../../
:mrdocs:

Remove the last segment

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
pop&lowbar;back() noexcept;
----

== Description

This function removes the last segment from the container&period;

Iterators to the last segment as well as all end iterators are invalidated&period;

== Preconditions
[,cpp]
----
not this->empty()
----
== Exception Safety
Throws nothing&period;


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