[#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 `&lt;baljsn&lowbar;simpleformatter&period;h&gt;`

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&period; Return 0 on success and a non&hyphen;zero value otherwise&period; The behavior is undefined unless `isNameNeeded()` is `false`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
int
xref:BloombergLP/baljsn/SimpleFormatter/addValue-02.adoc[addValue](TYPE const& value);
----

[.small]#xref:BloombergLP/baljsn/SimpleFormatter/addValue-02.adoc[_» more&period;&period;&period;_]#

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&period; Return 0 on success and a non&hyphen;zero value otherwise&period; The behavior is undefined unless `isNameNeeded()` is `true`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
int
xref:BloombergLP/baljsn/SimpleFormatter/addValue-08.adoc[addValue](
    std::string&lowbar;view const& name,
    TYPE const& value);
----

[.small]#xref:BloombergLP/baljsn/SimpleFormatter/addValue-08.adoc[_» more&period;&period;&period;_]#


[.small]#Created with https://www.mrdocs.com[MrDocs]#
