Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
param::param (6 of 6 overloads)

Constructor.

Synopsis
param(
    string_view key,
    string_view value);
Description

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

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

Linear in key.size() + value.size().

Exception Safety

Calls to allocate may throw.

Parameters

Name

Description

key, value

The key and value to set.


PrevUpHomeNext