:relfileprefix: ../../../
[#boost-urls-url-operator_assign-09]

== xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/url.adoc[pass:[url]]::operator=


Assignment


=== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/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


The contents of `u` are transferred to
`this`, including the underlying
character buffer. The previous contents
of `this` are destroyed.
After assignment, the moved-from
object is as if default constructed.
[,cpp]
----
u.empty() == true
----

=== Constant.

=== Throws nothing.





=== Parameters

|===
| Name | Description 

| *u*
| 
The url to assign from.

|===




