[#boost-urls-param-2constructor] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/param.adoc[param]::param :relfileprefix: ../../../ :mrdocs: Constructor == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/param.hpp#L124[boost/url/param.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:boost/urls/param/2constructor-09.adoc[param]() = default; ---- [.small]#xref:boost/urls/param/2constructor-09.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:boost/urls/param/2constructor-07.adoc[param](xref:boost/urls/param.adoc[param]&& other) noexcept; ---- [.small]#xref:boost/urls/param/2constructor-07.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:boost/urls/param/2constructor-0d.adoc[param](xref:boost/urls/param.adoc[param] const& other) = default; ---- [.small]#xref:boost/urls/param/2constructor-0d.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class OptionalString> xref:boost/urls/param/2constructor-0b.adoc[param]( core::string_view key, OptionalString const& value); ---- [.small]#xref:boost/urls/param/2constructor-0b.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:boost/urls/param/2constructor-0a.adoc[param]( core::string_view key, core::string_view value, bool has_value) noexcept; ---- [.small]#xref:boost/urls/param/2constructor-0a.adoc[_» more..._]# == Description Default constructed query parameters have an empty key and no value. === Example [,cpp] ---- param qp; ---- === Postconditions [,cpp] ---- this->key == "" && this->value == "" && this->has_value == false ---- === Complexity Constant. === Exception Safety Throws nothing. == Template Parameters |=== | Name | Description | *OptionalString* | An optional string type, such as `core::string_view`, `std::nullptr`, xref:boost/urls/no_value_t.adoc[no_value_t], or `optional<core::string_view>`. |=== == Parameters |=== | Name | Description | *key,* | value The key and value to set. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#