[#boost-urls-url_view-operator_assign-0f]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/url_view.adoc[url&lowbar;view]::operator&equals;
:relfileprefix: ../../../
:mrdocs:

Assignment

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:boost/urls/url_view.adoc[url&lowbar;view]&
operator&equals;(xref:boost/urls/url_view_base.adoc[url&lowbar;view&lowbar;base] const& other) noexcept;
----

== Description

After assignment, both views reference the same underlying character buffer&period; Ownership is not transferred&period;

== Postconditions

[,cpp]
----
this->buffer().data() == other.buffer().data()
----
== Complexity

Constant&period;

== Exception Safety

Throws nothing&period;

== Return Value

A reference to this object&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| The other view&period;
|===


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