[#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`. == Synopsis Declared in `<balb_testmessages.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STREAM> static STREAM& bdexStreamOut( STREAM& stream, xref:BloombergLP/balb/Enumerated/Value.adoc[Value] value, int version); ---- == Description Optionally specify an explicit `version` format; by default, the maximum supported version is written to `stream` and used as the format. If `version` is specified, that format is used but _not_ written to `stream`. If `version` is not supported, `stream` is left unmodified. (See the package‐group‐level documentation for more information on `bdex` streaming of container types). == 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]#