[#boost-urls-url-2constructor-01]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/url.adoc[url]::url
:relfileprefix: ../../../
:mrdocs:


Constructor

== Synopsis


Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/url.hpp#L194[boost&sol;url&sol;url&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,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&period;        After construction, the moved&hyphen;from        object is as if default constructed&period;


=== Postconditions

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

=== Complexity

Constant&period;


=== Exception Safety

Throws nothing&period;



== Parameters


|===
| Name | Description

| *u*
| The url to move from&period;


|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
