[#boost-urls-static_url-2constructor-09f]
= 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#L243[boost&sol;url&sol;static&lowbar;url&period;hpp]&gt;`

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

== Description

The newly constructed object contains a copy of `u`&period;

== Postconditions
[,cpp]
----
this->buffer() == u.buffer() && this->buffer.data() != u.buffer().data()
----
== Complexity
Linear in `u&period;size()`&period;

== Exception Safety
Throws nothing&period;

== Parameters

[cols=2]
|===
| Name
| Description
| *u*
| The url to copy&period;
|===


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