[#boost-urls-segments_encoded_ref-url] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/segments_encoded_ref.adoc[segments_encoded_ref]::url :relfileprefix: ../../../ :mrdocs: Return the referenced url == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/segments_encoded_ref.hpp#L245[boost/url/segments_encoded_ref.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:boost/urls/url_base.adoc[url_base]& url() const noexcept; ---- == Description This function returns the url referenced by the view. === Example [,cpp] ---- url u( "/path/to/file.txt" ); assert( &u.encoded_segments().url() == &u ); ---- === Exception Safety Throws nothing. [.small]#Created with https://www.mrdocs.com[MrDocs]#