boost::urls::segments_base::back

Return the last segment

Synopsis

std::string
back() const noexcept;

Description

this->empty() == false
assert( url_view( "/path/to/file.txt" ).segments().back() == "file.txt" );
this->empty() == false
return *--end();

Complexity

Linear in this‐>back().size().

Exception Safety

Calls to allocate may throw.

Created with MrDocs