:relfileprefix: ../../../
[#CBB95C4AA66064CD9D12A3AF73D0967B5385D747]

= Function params_ref::operator=

pass:v,q[Assignment]


== Synopsis

Declared in header `</boost/url/params_ref.hpp#L184[boost/url/params_ref.hpp,window=blank_]>`

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

== Description

pass:v,q[The previous contents of this are] pass:v,q[replaced by the contents of `other.]
pass:v,q[All iterators are invalidated.]
[NOTE]
pass:v,q[The strings referenced by `other`]
pass:v,q[must not come from the underlying url,]
pass:v,q[or else the behavior is undefined.]

=== Effects
[,cpp]
----
this->assign( other.begin(), other.end() );
----

=== Complexity
pass:v,q[Linear in `other.buffer().size()`.]

=== Exception Safety
pass:v,q[Strong guarantee.]
pass:v,q[Calls to allocate may throw.]



== Return Value

* `` 


== Parameters

|===
| Name | Type 

| *other*
| ``

|===



