Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
param::param (2 of 6 overloads)

Constructor.

Synopsis
param(
    string_view key,
    std::nullptr_t);
Description

This constructs a parameter with a key and no value. No validation is performed on the strings. Ownership of the key is acquired by making a copy.

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

Linear in key.size().

Exception Safety

Calls to allocate may throw.

Parameters

Name

Description

key

The key to set.

See Also

no_value.


PrevUpHomeNext