key_value_pair

A key/value pair.

Synopsis

Defined in header <boost/json/value.hpp>.

class key_value_pair;

Member Functions

Name Description

key

The pair’s key.

key_c_str

The pair’s key as a null-terminated string.

key_value_pair [constructor]

Constructors.

operator=

Assignment.

storage

The associated memory resource.

value

The pair’s value.

~key_value_pair [destructor]

Destructor.

Description

This is the type of element used by the object container.

Convenience header <boost/json.hpp>.