:relfileprefix: ../../../
[#65B65556D7C0D492AD33575C376715EC67170996]

= Function static_url::operator=

pass:v,q[Assignment]


== Synopsis

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

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

== Description

pass:v,q[The contents of `u` are copied and] pass:v,q[the previous contents of `this` are]
pass:v,q[discarded.]
pass:v,q[Capacity remains unchanged.]

=== 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[Throws nothing.]



== Return Value

* `` 


== Parameters

|===
| Name | Type 

| *u*
| ``

|===



