boost::urls::param::param

Constructor

Synopsis

Declared in <include/boost/url/param.hpp>

constexpr
param() = default;

» more...

param(param&& other) noexcept;

» more...

constexpr
param(param const& other) = default;

» more...

template<class OptionalString>
param(
    core::string_view key,
    OptionalString const& value);

» more...

param(
    core::string_view key,
    core::string_view value,
    bool has_value) noexcept;

» more...

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.

Template Parameters

Name Description
OptionalString

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

Parameters

Name Description
key,

value The key and value to set.

Created with MrDocs