:relfileprefix: ../../../
[#9CC918ABBA9250A971987595307349CF9D24BC51]

= Function params_ref::params_ref

pass:v,q[Constructor]


== Synopsis

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

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

== Description

pass:v,q[After construction, both views will] pass:v,q[reference the same url but this]
pass:v,q[instance will use the specified]
xref:boost/urls/encoding_opts.adoc[encoding_opts]
pass:v,q[when the values]
pass:v,q[are decoded.]
pass:v,q[Ownership is not transferred; the]
pass:v,q[caller is responsible for ensuring]
pass:v,q[the lifetime of the url extends]
pass:v,q[until it is no longer referenced.]

=== Postconditions
[,cpp]
----
&this->url() == &other.url()
----

=== Complexity
pass:v,q[Constant.]

=== Exception Safety
pass:v,q[Throws nothing.]



== Return Value

* `void` 


== Parameters

|===
| Name | Type 

| *other*
| ``

| *opt*
| `encoding_opts`

|===



