[#boost-urls-params_view-2constructor-01]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/params_view.adoc[params&lowbar;view]::params&lowbar;view
:relfileprefix: ../../../
:mrdocs:

Constructor

== Synopsis

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

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

== Description

After construction both views will reference the same character buffer 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 buffer extends until it is no longer referenced&period;

== Postconditions

[,cpp]
----
this->buffer().data() == other.buffer().data()
----
== Complexity

Constant&period;

== Exception Safety

Throws nothing

== Parameters

[cols=2]
|===
| Name
| Description
| *other*
| The object to copy
| *opt*
| The options for decoding
|===


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