boost::urls::param_view::param_view

Constructor

Synopsis

constexpr
param_view() = default;
template<class OptionalString>
param_view(
    core::string_view key,
    OptionalString const& value) noexcept;
param_view(param const& other) noexcept;
param_view(
    core::string_view key_,
    core::string_view value_,
    bool has_value_) noexcept;

Description

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

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

Complexity

Constant.

Exception Safety

Throws nothing.

Template Parameters

Name Description

OptionalString

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

Parameters

Name Description

key,

value The key and value to set.

other

The param to reference

Created with MrDocs