:relfileprefix: ../../../
[#C478346E1405D203DAC74F8AB5DA48C1B2B679F0]

= Function static_url::operator=

pass:v,q[Assignment]


== Synopsis

Declared in header `</boost/url/static_url.hpp#L330[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/url_view_base.adoc[url_view_base]& u);
----

== Description

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

=== 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[Strong guarantee.]
pass:v,q[Exception thrown if capacity exceeded.]



== Return Value

* `` 


== Parameters

|===
| Name | Type 

| *u*
| ``

|===



