:relfileprefix: ../../../ [#4A251B015BDB8B3B6A26622863076F9284328BDD] = Function segments_base::back pass:v,q[Return the last segment] == Synopsis Declared in header `` [source,cpp,subs="verbatim,macros,-callouts"] ---- string back() const noexcept; ---- == Description === Preconditions [,cpp] ---- this->empty() == false ---- === Example [,cpp] ---- assert( url_view( "/path/to/file.txt" ).segments().back() == "file.txt" ); ---- === Preconditions [,cpp] ---- this->empty() == false ---- === Effects [,cpp] ---- return *--end(); ---- === Complexity pass:v,q[Linear in `this->back().size()`.] === Exception Safety pass:v,q[Calls to allocate may throw.] == Return Value * `string`