[#boost-urls-param-2constructor-04] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/param.adoc[param]::param :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/param.hpp#L124[boost/url/param.hpp]>` Constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:boost/urls/param/2constructor-09b.adoc[param]() = default; ---- [.small]#xref:boost/urls/param/2constructor-09b.adoc[_» more..._]# Constructor [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..._]# Constructor [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..._]# Constructor [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..._]# Aggregate construction [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..._]# == Return Value A reference to this object. == Template Parameters [cols=2] |=== | 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 [cols=2] |=== | Name | Description | *other* | The object 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]#