:relfileprefix: ../../../
[#boost-urls-params_view-2constructor-01]

= xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/params_view.adoc[pass:[params_view]]::params_view


Constructor


== Synopsis

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

[source,cpp,subs="verbatim,macros,-callouts"]
----
params_view(
    xref:boost/urls/params_view.adoc[params_view] const& other,
    xref:boost/urls/encoding_opts.adoc[encoding_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_opts]
when the values
are decoded.

Ownership is not transferred; the caller
is responsible for ensuring the lifetime
of the buffer extends until it is no
longer referenced.

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

=== Complexity

Constant.

=== Exception Safety

Throws nothing








