Boost.URL Logo

PrevUpHomeNext
segments_encoded::pop_back

Remove the last element.

Synopsis
void
pop_back();
Description

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.

Preconditions
not empty()
Example
url u = parse_relative_uri( "/path/to/file.txt" );

u.segments_encoded().pop_back();

assert( u.encoded_path() == "/path/to" );
Exception Safety

Throws nothing.


PrevUpHomeNext