Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

key_value_pair

A key/value pair.

Synopsis

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

class key_value_pair
Member Functions

Name

Description

key

Return the key of this element.

key_c_str

Return the key of this element as a null-terminated string.

key_value_pair

Copy constructor.

Move constructor.

Pilfer constructor.

Constructor.

operator=

Copy assignment (deleted).

storage

Return the associated memory resource.

value

Return the value of this element.

~key_value_pair

Destructor.

Description

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

Convenience header <boost/json.hpp>


PrevUpHomeNext