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

Complexity

Constant.

Exception Safety

Throws nothing.

Exceptions

Name Thrown on

system_error

key or value contains an invalid percent‐encoding.

Template Parameters

Name Description

OptionalString

An optional core::string_view type, such as boost::optional<core::string_view> or std::optional<core::string_view>.

Parameters

Name Description

key,

value The key and value to set.

p

The param to construct from.

Created with MrDocs