:relfileprefix: ../../../
[#boost-urls-param-operator_assign-03]

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


Assignment


== Synopsis

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

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

== Description


The members of `other` are copied,
re-using already existing string capacity.

=== Postconditions
[,cpp]
----
this->key == other.key && this->value == other.value && this->has_value == other.has_value
----

=== Complexity

Linear in `other.key.size() + other.value.size()`.

=== Exception Safety

Calls to allocate may throw.





== Parameters

|===
| Name | Description 

| *other*
| 
The parameter to copy.

|===




