addValue overloads

Synopses

Declared in <baljsn_simpleformatter.h>

Print the specified value onto the stream.

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

Print the specified name and value onto the stream.

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

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

value

value to encode as JSON

name

member name for the value

Created with MrDocs