boost::urls::param_view::param_view

Constructor

Synopsis

Declared in <boost/url/param.hpp>

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

Constant.

Throws nothing.

Parameters

Name Description

OptionalString

An optional string type, such as `core::string_view`, `std::nullptr`, xref:/boost/urls/no_value_t.adoc[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