[#BloombergLP-baljsn-SimpleFormatter-addValue-05] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/SimpleFormatter.adoc[SimpleFormatter]::addValue :relfileprefix: ../../../ :mrdocs: `addValue` overloads == Synopses Declared in `<baljsn_simpleformatter.h>` Print the specified `value` onto the stream. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> int xref:BloombergLP/baljsn/SimpleFormatter/addValue-02.adoc[addValue](TYPE const& value); ---- [.small]#xref:BloombergLP/baljsn/SimpleFormatter/addValue-02.adoc[_» more..._]# Print the specified `name` and `value` onto the stream. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> int xref:BloombergLP/baljsn/SimpleFormatter/addValue-08.adoc[addValue]( std::string_view const& name, TYPE const& value); ---- [.small]#xref:BloombergLP/baljsn/SimpleFormatter/addValue-08.adoc[_» more..._]# == Return Value 0 on success, and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *value* | value to encode as JSON | *name* | member name for the value |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#