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

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

  


Constructor



=== Synopsis
  

[source,cpp,subs="verbatim,macros,-callouts"]
----
constexpr
xref:boost/urls/params_ref/2constructor-0b.adoc[pass:[params_ref]](xref:boost/urls/params_ref.adoc[params_ref] const& other) = default;
----

[source,cpp,subs="verbatim,macros,-callouts"]
----
xref:boost/urls/params_ref/2constructor-09.adoc[pass:[params_ref]](
    xref:boost/urls/params_ref.adoc[params_ref] const& other,
    xref:boost/urls/encoding_opts.adoc[encoding_opts] opt) noexcept;
----
  
=== Description


After construction, both views
reference the same url. Ownership is not
transferred; the caller is responsible
for ensuring the lifetime of the url
extends until it is no longer
referenced.
[,cpp]
----
&this->url() == &other.url()
----

=== Constant.

=== Throws nothing.




=== Parameters

|===
| Name | Description 

| *other*
| 
The other view.

| *opt*
| 
The options for decoding. If
this parameter is omitted, `space_as_plus`
is used.

|===




