[#boost-urls-static_url-2constructor-098]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/static_url.adoc[static&lowbar;url]::static&lowbar;url
:relfileprefix: ../../../
:mrdocs:

Constructor

== Synopsis

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

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

== Description

Default constructed urls contain a zero&hyphen;length string&period; This matches the grammar for a relative&hyphen;ref with an empty path and no query or fragment&period;

== Example

[,cpp]
----
static_url< 1024 > 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]#
