boost::urls::param_pct_view::param_pct_view

Constructor

Synopsis

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

constexpr
param_pct_view() = default;

» more...

param_pct_view(
    pct_string_view key,
    pct_string_view value) noexcept;

» more...

template<class OptionalString>
param_pct_view(
    pct_string_view key,
    OptionalString const& value);

» more...

explicit
param_pct_view(param_view const& p);

» more...

param_pct_view(
    pct_string_view key,
    pct_string_view value,
    bool has_value) noexcept;

» more...

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
[object Object]

or `value` contains an invalid percent-encoding.

Template Parameters

Name Description
OptionalString

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

Parameters

Name Description
key,

value The key and value to set.

p

The param to construct from.

Created with MrDocs