addValue overloads

Synopses

Declared in <baljsn_simpleformatter.h>

Print onto the stream supplied at construction the specified value, preceded, if necessary, by a comma, passing the optionally specified options through to the rendering routines. Return 0 on success and a non‐zero value otherwise. The behavior is undefined unless isNameNeeded() is false.

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

Print onto the stream supplied at construction the specified name and the specified value, preceded, if necessary, by a comma, passing the optionally specified options through to the rendering routines. Return 0 on success and a non‐zero value otherwise. The behavior is undefined unless isNameNeeded() is true.

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

Created with MrDocs