[#boost-urls-params_encoded_ref-operator_assign-02]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/params_encoded_ref.adoc[params&lowbar;encoded&lowbar;ref]::operator&equals;
:relfileprefix: ../../../
:mrdocs:

Assignment

== Synopsis

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/params_encoded_ref.hpp#L143[boost&sol;url&sol;params&lowbar;encoded&lowbar;ref&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:boost/urls/params_encoded_ref.adoc[params&lowbar;encoded&lowbar;ref]&
operator&equals;(xref:boost/urls/params_encoded_ref.adoc[params&lowbar;encoded&lowbar;ref] const& other);
----

== Description

The previous contents of this are replaced by the contents of other&period;

All iterators are invalidated&period;

[NOTE]
The strings referenced by `other` must not come from the underlying url, or else the behavior is undefined&period;

== Effects
[,cpp]
----
this->assign( other.begin(), other.end() );
----
== Complexity
Linear in `other&period;buffer()&period;size()`&period;

== Exception Safety
Strong guarantee&period; Calls to allocate may throw&period;

== Return Value

`&ast;this`

== Parameters

[cols=2]
|===
| Name
| Description
| *other*
| The params to assign&period;
|===


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