boost::urls::param::param

Constructor

Synopsis

constexpr
param() = default;
param(param&& other) noexcept;
constexpr
param(param const& other) = default;
template<class OptionalString>
param(
    core::string_view key,
    OptionalString const& value);
param(
    core::string_view key,
    core::string_view value,
    bool has_value) noexcept;

Description

Default constructed query parameters have an empty key and no value.

param qp;
this->key == "" && this->value == "" && this->has_value == false

Constant.

Throws nothing.

Parameters

Name Description

OptionalString

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

Parameters

Name Description

key,

value The key and value to set&period;

Created with MrDocs