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

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

  


Assignment



=== Synopsis
  

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

[source,cpp,subs="verbatim,macros,-callouts"]
----
xref:boost/urls/url.adoc[url]&
xref:boost/urls/url/operator_assign-0b.adoc[pass:[operator=]](xref:boost/urls/url_view_base.adoc[url_view_base] const& u);
----

[source,cpp,subs="verbatim,macros,-callouts"]
----
xref:boost/urls/url.adoc[url]&
xref:boost/urls/url/operator_assign-06.adoc[pass:[operator=]](xref:boost/urls/url.adoc[url] const& u);
----
  
=== 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.


=== Exceptions

|===
| Name | Thrown on

| ``u.size()`
| 
&gt; max_size()`.

|===


=== Parameters

|===
| Name | Description 

| *u*
| 
The url to assign from.

|===




