Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
param_pct_view::param_pct_view (1 of 5 overloads)

Constructor.

Synopsis
param_pct_view(
    pct_string_view key,
    no_value_t);
Description

This constructs a parameter with a key, which may contain percent escapes, and no value. The new key will reference the same underlying character buffer. Ownership of the buffers is not transferred; the caller is responsible for ensuring that the assigned buffers remain valid until they are no longer referenced.

Example
param_pct_view qp( "key" );
Postconditions
this->key.data() == key.data() && this->value == "" && this->has_value == false
Complexity

Linear in key.size().

Exception Safety

Exceptions thrown on invalid input.

Exceptions

Type

Thrown On

system_error

key contains an invalid percent-encoding.

Parameters

Name

Description

key

The key to set.

See Also

no_value.


PrevUpHomeNext