[#boost-urls-params_ref-2constructor] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/params_ref.adoc[params_ref]::params_ref :relfileprefix: ../../../ :mrdocs: Constructor == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/params_ref.hpp#L87[boost/url/params_ref.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:boost/urls/params_ref.adoc[params_ref]( xref:boost/urls/url_base.adoc[url_base]& u, xref:boost/urls/encoding_opts.adoc[encoding_opts] opt) noexcept; ---- [.small]#xref:boost/urls/params_ref.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:boost/urls/params_ref/2constructor-0b.adoc[params_ref](xref:boost/urls/params_ref.adoc[params_ref] const& other) = default; ---- [.small]#xref:boost/urls/params_ref/2constructor-0b.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:boost/urls/params_ref/2constructor-09.adoc[params_ref]( xref:boost/urls/params_ref.adoc[params_ref] const& other, xref:boost/urls/encoding_opts.adoc[encoding_opts] opt) noexcept; ---- [.small]#xref:boost/urls/params_ref/2constructor-09.adoc[_» more..._]# == 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. === Postconditions [,cpp] ---- &this->url() == &other.url() ---- === Complexity Constant. === Exception Safety Throws nothing. == Parameters |=== | Name | Description | *other* | The other view. | *opt* | The options for decoding. If this parameter is omitted, `space_as_plus` is used. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#