[#boost-urls-url-operator_assign-09] = xref:boost/urls/url/operator_assign-09.adoc[boost::urls::url::operator=] :relfileprefix: ../../../ :mrdocs: Assignment == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/url.hpp#L272[boost/url/url.hpp]>` [source,cpp,subs="verbatim,replacements,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. == Postconditions [,cpp] ---- u.empty() == true ---- == Complexity Constant. == Exception Safety Throws nothing. == Return Value A reference to this object. == Parameters [cols=2] |=== | Name | Description | *u* | The url to assign from. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#