Remove the last element.
void pop_back();
This function removes the last element from the container, which must not
be empty or else undefined behavior occurs. Iterators and references to
the last element, as well as the end
iterator, are invalidated.
not empty()
url u = parse_relative_uri( "/path/to/file.txt" ); u.segments().pop_back(); assert( u.encoded_path() == "/path/to" );
Throws nothing.