:relfileprefix: ../../../
[#boost-urls-url-2constructor-01]

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


Constructor


== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/url.hpp#L194[boost/url/url.hpp,window=blank_]>`

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

== Description


The contents of `u` are transferred
to the newly constructed object,
which includes the underlying
character buffer.
After construction, the moved-from
object is as if default constructed.

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

=== Complexity

Constant.

=== Exception Safety

Throws nothing.





== Parameters

|===
| Name | Description 

| *u*
| 
The url to move from.

|===




