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

Constant.

Throws nothing.

Parameters

Name Description

OptionalString

An optional string type, such as &grave;core&colon;&colon;string&lowbar;view&grave;, &grave;std&colon;&colon;nullptr&grave;, xref:boost/urls/no_value_t.adoc[no&lowbar;value&lowbar;t] , or &grave;optional&lt;core&colon;&colon;string&lowbar;view&gt;&grave;&period;

Parameters

Name Description

key,

value The key and value to set&period;

other

The param to reference

Created with MrDocs