:relfileprefix: ../../../
[#boost-urls-static_url-2constructor-06]

== xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/static_url.adoc[pass:[static_url]]::static_url


Constructor


=== Synopsis

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

[source,cpp,subs="verbatim,macros,-callouts"]
----
static_url() noexcept;
----

=== Description


Default constructed urls contain
a zero-length string. This matches
the grammar for a relative-ref with
an empty path and no query or
fragment.
[,cpp]
----
static_url< 1024 > u;
----
[,cpp]
----
this->empty() == true
----

=== Constant.

=== Throws nothing.
[,cpp]
----
relative-ref  = relative-part [ "?" query ] [ "#" fragment ]
----

=== 4.2. Relative Reference (rfc3986)








