[#boost-urls-param_pct_view-2constructor-0d] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/param_pct_view.adoc[param_pct_view]::param_pct_view :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/param.hpp#L721[boost/url/param.hpp]>` Constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:boost/urls/param_pct_view/2constructor-00.adoc[param_pct_view]() = default; ---- [.small]#xref:boost/urls/param_pct_view/2constructor-00.adoc[_» more..._]# Construction [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:boost/urls/param_pct_view/2constructor-03.adoc[param_pct_view](xref:boost/urls/param_view.adoc[param_view] const& p); ---- [.small]#xref:boost/urls/param_pct_view/2constructor-03.adoc[_» more..._]# Constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:boost/urls/param_pct_view/2constructor-0e.adoc[param_pct_view]( xref:boost/urls/pct_string_view.adoc[pct_string_view] key, xref:boost/urls/pct_string_view.adoc[pct_string_view] value) noexcept; ---- [.small]#xref:boost/urls/param_pct_view/2constructor-0e.adoc[_» more..._]# Constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class OptionalString> xref:boost/urls/param_pct_view/2constructor-05.adoc[param_pct_view]( xref:boost/urls/pct_string_view.adoc[pct_string_view] key, OptionalString const& value); ---- [.small]#xref:boost/urls/param_pct_view/2constructor-05.adoc[_» more..._]# Aggregate construction [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:boost/urls/param_pct_view/2constructor-02.adoc[param_pct_view]( xref:boost/urls/pct_string_view.adoc[pct_string_view] key, xref:boost/urls/pct_string_view.adoc[pct_string_view] value, bool has_value) noexcept; ---- [.small]#xref:boost/urls/param_pct_view/2constructor-02.adoc[_» more..._]# == Exceptions [cols=2] |=== | Name | Thrown on | `system_error` | `key` or `value` contains an invalid percent escape. |=== == Return Value A param object == Template Parameters [cols=2] |=== | Name | Description | *OptionalString* | An optional `core::string_view` type, such as `boost::optional<core::string_view>` or `std::optional<core::string_view>`. |=== == Parameters [cols=2] |=== | Name | Description | *p* | The param to construct from. | *key* | The key to set. | *value* | The value to set. | *has_value* | True if a value is present |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#