boost::urls::segments_base::back Return the last segment Synopsis Declared in header <boost/url/segments_base.hpp> 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(); Linear in this->back().size(). Calls to allocate may throw.