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


Assignment

== Synopsis


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

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

[.small]#xref:boost/urls/params_ref/operator_assign-0c.adoc[_» more..._]#

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:boost/urls/params_ref.adoc[params&lowbar;ref]&
xref:boost/urls/params_ref/operator_assign-03.adoc[operator&equals;](std::initializer&lowbar;list&lt;xref:boost/urls/param_view.adoc[param&lowbar;view]&gt; init);
----

[.small]#xref:boost/urls/params_ref/operator_assign-03.adoc[_» more..._]#

== 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;



== Parameters


|===
| Name | Description

| *other*
| The params to assign&period;


| *init*
| The list of params to assign&period;


|===



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