boost::urls::param_pct_view::param_pct_view

Constructor

Synopsis

constexpr
param_pct_view() = default;
template<class OptionalString>
param_pct_view(
    pct_string_view key,
    OptionalString const& value);
explicit
param_pct_view(param_view const& p);
param_pct_view(
    pct_string_view key,
    pct_string_view value,
    bool has_value) noexcept;

Description

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

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

Constant.

Throws nothing.

Exceptions

Name Thrown on

key

or value contains an invalid percent-encoding.

Parameters

Name Description

key,

value The key and value to set.

p

The param to construct from.