[#boost-urls-params_view-2constructor] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/params_view.adoc[params_view]::params_view :relfileprefix: ../../../ :mrdocs: Constructor == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/params_view.hpp#L80[boost/url/params_view.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:boost/urls/params_view/2constructor-0d.adoc[params_view]() = default; ---- [.small]#xref:boost/urls/params_view/2constructor-0d.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:boost/urls/params_view/2constructor-091.adoc[params_view](xref:boost/urls/params_view.adoc[params_view] const& other) = default; ---- [.small]#xref:boost/urls/params_view/2constructor-091.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:boost/urls/params_view/2constructor-01.adoc[params_view]( xref:boost/urls/params_view.adoc[params_view] const& other, xref:boost/urls/encoding_opts.adoc[encoding_opts] opt) noexcept; ---- [.small]#xref:boost/urls/params_view/2constructor-01.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:boost/urls/params_view/2constructor-09a.adoc[params_view](core::string_view s); ---- [.small]#xref:boost/urls/params_view/2constructor-09a.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:boost/urls/params_view/2constructor-04.adoc[params_view]( core::string_view s, xref:boost/urls/encoding_opts.adoc[encoding_opts] opt); ---- [.small]#xref:boost/urls/params_view/2constructor-04.adoc[_» more..._]# == Description Default‐constructed params have zero elements. === Example [,cpp] ---- params_view qp; ---- === Effects [,cpp] ---- return params_view( "" ); ---- === Complexity Constant. === Exception Safety Throws nothing. == Exceptions |=== | Name | Thrown on | `system_error` | `s` contains an invalid query parameter string. |=== == Parameters |=== | Name | Description | *s* | The string to parse. | *opt* | The options for decoding. If this parameter is omitted, `space_as_plus` is used. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#