[#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 `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/param.hpp#Lundefined[boost&sol;url&sol;param&period;hpp]&gt;`

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&period;&period;&period;_]#

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&period;&period;&period;_]#

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&period;&period;&period;_]#

Constructor


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class OptionalString&gt;
xref:boost/urls/param/2constructor-0b.adoc[param](
    core::string&lowbar;view key,
    OptionalString const& value);
----

[.small]#xref:boost/urls/param/2constructor-0b.adoc[_» more&period;&period;&period;_]#

Aggregate construction


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:boost/urls/param/2constructor-0a.adoc[param](
    core::string&lowbar;view key,
    core::string&lowbar;view value,
    bool has&lowbar;value);
----

[.small]#xref:boost/urls/param/2constructor-0a.adoc[_» more&period;&period;&period;_]#

== Return Value

A reference to this object&period;

== Template Parameters

[cols="1,4"]
|===
|Name|Description

| *OptionalString*
| An optional string type, such as `core&colon;&colon;string&lowbar;view`, `std&colon;&colon;nullptr`, xref:boost/urls/no_value_t.adoc[`no&lowbar;value&lowbar;t`], or `optional&lt;core&colon;&colon;string&lowbar;view&gt;`&period;
|===

== Parameters

[cols="1,4"]
|===
|Name|Description

| *other*
| The object to construct from&period;
| *key*
| The key to set&period;
| *value*
| The value to set&period;
| *has&lowbar;value*
| True if a value is present&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
