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

OptionalString

An optional &grave;core&colon;&colon;string&lowbar;view&grave; type, such as &grave;boost&colon;&colon;optional&lt;core&colon;&colon;string&lowbar;view&gt;&grave; or &grave;std&colon;&colon;optional&lt;core&colon;&colon;string&lowbar;view&gt;&grave;&period;

Parameters

Name Description

key,

value The key and value to set&period;

p

The param to construct from&period;

Created with MrDocs