[#boost-urls-segments_encoded_ref-url]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/segments_encoded_ref.adoc[segments&lowbar;encoded&lowbar;ref]::url
:relfileprefix: ../../../
:mrdocs:

Return the referenced url

== Synopsis

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/segments_encoded_ref.hpp#L251[boost&sol;url&sol;segments&lowbar;encoded&lowbar;ref&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:boost/urls/url_base.adoc[url&lowbar;base]&
url() const noexcept;
----

== Description

This function returns the url referenced by the view&period;

== Example

[,cpp]
----
url u( "/path/to/file.txt" );

assert( &u.encoded_segments().url() == &u );
----
== Exception Safety

Throws nothing&period;

== Return Value

A reference to the url&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
