[#boost-urls-params_ref-2constructor-09]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/params_ref.adoc[params&lowbar;ref]::params&lowbar;ref
:relfileprefix: ../../../
:mrdocs:

Constructor

== Synopsis

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

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

== Description

After construction, both views will reference the same url but this instance will use the specified xref:boost/urls/encoding_opts.adoc[`encoding&lowbar;opts`] when the values are decoded&period;

Ownership is not transferred&semi; the caller is responsible for ensuring the lifetime of the url extends until it is no longer referenced&period;

== Postconditions

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

Constant&period;

== Exception Safety

Throws nothing&period;

== Parameters

[cols=2]
|===
| Name
| Description
| *other*
| The other view&period;
| *opt*
| The options for decoding&period; If this parameter is omitted, `space&lowbar;as&lowbar;plus` is used&period;
|===


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