[#boost-urls-url_view-2constructor-0cb]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/url_view.adoc[url&lowbar;view]::url&lowbar;view
:relfileprefix: ../../../
:mrdocs:

Constructor

== Synopsis

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/url_view.hpp#L153[boost&sol;url&sol;url&lowbar;view&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
url&lowbar;view() noexcept = default;
----

== Description

Default constructed views refer to a string with zero length, which always remains valid&period; This matches the grammar for a relative&hyphen;ref with an empty path and no query or fragment&period;

== Example

[,cpp]
----
url_view u;
----
== Postconditions

[,cpp]
----
this->empty() == true
----
== Complexity

Constant&period;

== Exception Safety

Throws nothing&period;

== BNF

[,cpp]
----
relative-ref  = relative-part [ "?" query ] [ "#" fragment ]
----
== Specification


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