:relfileprefix: ../../../
[#92B82BCF2B2CDCC7518C894C3FC35EF9AEA4DD5D]

= Function url::operator=

pass:v,q[Assignment]


== Synopsis

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

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

== Description

pass:v,q[The contents of `u` are transferred to] pass:v,q[`this`, including the underlying]
pass:v,q[character buffer. The previous contents]
pass:v,q[of `this` are destroyed.]
pass:v,q[After assignment, the moved-from]
pass:v,q[object is as if default constructed.]

=== Postconditions
[,cpp]
----
u.empty() == true
----

=== Complexity
pass:v,q[Constant.]

=== Exception Safety
pass:v,q[Throws nothing.]



== Return Value

* `` 


== Parameters

|===
| Name | Type 

| *u*
| ``

|===



