:relfileprefix: ../../../
[#boost-urls-segments_ref-url]

= xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/segments_ref.adoc[pass:[segments_ref]]::url


Return the referenced url


== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/segments_ref.hpp#L238[boost/url/segments_ref.hpp,window=blank_]>`

[source,cpp,subs="verbatim,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.segments().url() == &u );
----

=== Exception Safety

Throws nothing.








