BloombergLP::baljsn::SimpleFormatter::addValue

addValue overloads

Synopses

Declared in <baljsn_simpleformatter.h>

Print the specified value onto the stream.

template<class TYPE>
int
addValue(TYPE const& value);
» more...

Print the specified name and value onto the stream.

template<class TYPE>
int
addValue(
    std::string_view const& name,
    TYPE const& value);
» more...

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
valuevalue to encode as JSON
namemember name for the value