:relfileprefix: ../../../
[#boost-urls-param_view-2constructor-07e]

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


Constructor


=== Synopsis

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

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

=== Description


This function constructs a param
which references the character buffers
representing the key and value in another
container.
Ownership of the buffers is not transferred;
the caller is responsible for ensuring that
the assigned buffers remain valid until
they are no longer referenced.
[,cpp]
----
param qp( "key", "value" );
param_view qpv( qp );
----
[,cpp]
----
this->key == key && this->value == value && this->has_value == other.has_value
----

=== Constant.

=== Throws nothing.





=== Parameters

|===
| Name | Description 

| *other*
| 
The param to reference

|===




