:relfileprefix: ../../../
[#BCD51A3B56D8EDA73CC5343B05E65BE924EF8A45]

= Function static_url::static_url

pass:v,q[Constructor]


== Synopsis

Declared in header `</boost/url/static_url.hpp#L271[boost/url/static_url.hpp,window=blank_]>`

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

== Description

pass:v,q[The newly constructed object contains] pass:v,q[a copy of `u`.]

=== Postconditions
[,cpp]
----
this->buffer() == u.buffer() && this->buffer.data() != u.buffer().data()
----

=== Complexity
pass:v,q[Linear in `u.size()`.]

=== Exception Safety
pass:v,q[Exception thrown if capacity exceeded.]



== Return Value

* `void` 


== Parameters

|===
| Name | Type 

| *u*
| ``

|===



