[#BloombergLP-balb-Enumerated-bdexStreamOut]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balb.adoc[balb]::xref:BloombergLP/balb/Enumerated.adoc[Enumerated]::bdexStreamOut
:relfileprefix: ../../../
:mrdocs:

Write the specified `value` to the specified output `stream` and return a reference to the modifiable `stream`&period;

== Synopsis

Declared in `&lt;balb&lowbar;testmessages&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STREAM&gt;
static
STREAM&
bdexStreamOut(
    STREAM& stream,
    xref:BloombergLP/balb/Enumerated/Value.adoc[Value] value,
    int version);
----

== Description

Optionally specify an explicit `version` format&semi; by default, the maximum supported version is written to `stream` and used as the format&period; If `version` is specified, that format is used but _not_ written to `stream`&period; If `version` is not supported, `stream` is left unmodified&period; (See the package&hyphen;group&hyphen;level documentation for more information on `bdex` streaming of container types)&period;

== Return Value

a reference to the modifiable `stream`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *stream*
| output stream
| *value*
| enumeration value to write
| *version*
| bdex format version
|===


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