:relfileprefix: ../../../ [#86E21F68C33AB0280D821766F2600BCF45912F79] = Function segments_encoded_base::back pass:v,q[Return the last segment] == Synopsis Declared in header `` [source,cpp,subs="verbatim,macros,-callouts"] ---- xref:boost/urls/pct_string_view.adoc[pct_string_view] back() const noexcept; ---- == Description pass:v,q[This function returns a string with the] pass:v,q[last segment of the path without any] pass:v,q[leading or trailing '/' separators.] pass:v,q[The returned string may contain] pass:v,q[percent escapes.] === Preconditions [,cpp] ---- this->empty() == false ---- === Example [,cpp] ---- assert( url_view( "/path/to/file.txt" ).encoded_segments().back() == "file.txt" ); ---- === Preconditions [,cpp] ---- this->empty() == false ---- === Effects [,cpp] ---- return *--end(); ---- === Complexity pass:v,q[Constant.] === Exception Safety pass:v,q[Throws nothing.] == Return Value * `pct_string_view`