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

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


Assignment


== Synopsis

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

[source,cpp,subs="verbatim,macros,-callouts"]
----
constexpr
xref:boost/urls/params_encoded_view.adoc[params_encoded_view]&
operator=(xref:boost/urls/params_encoded_view.adoc[params_encoded_view] const&) = default;
----

== Description


After assignment, both views
reference the same underlying character
buffer.

Ownership is not transferred; the caller
is responsible for ensuring the lifetime
of the buffer extends until it is no
longer referenced.

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

=== Complexity

Constant

=== Exception Safety

Throws nothing








