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

Complexity

Constant.

Exception Safety

Throws nothing.

Template Parameters

Name Description

OptionalString

An optional string type, such as core::string_view, std::nullptr, no_value_t, or optional<core::string_view>.

Parameters

Name Description

key,

value The key and value to set.

Created with MrDocs