:relfileprefix: ../../../
[#boost-urls-params_encoded_view-2conversion]

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


Conversion


== Synopsis

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

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

== Description


This conversion returns a new view which
references the same underlying character
buffer, and whose iterators and members
return ordinary strings with decoding
applied to any percent escapes.

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

=== Example
[,cpp]
----
params_view qp = parse_path( "/path/to/file.txt" ).value();
----

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

=== Complexity

Constant

=== Exception Safety

Throws nothing








