[#BloombergLP-bdlt-bdexStreamOut-07]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::bdexStreamOut
:relfileprefix: ../../
:mrdocs:

Write the enum `value` to `stream` using BDEX&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;dayofweek&period;h&gt;`

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

== Description

Write the specified `value`, using the specified `version` format, to the specified output `stream`, and return a reference to `stream`&period; If `stream` is initially invalid, this operation has no effect&period; If `version` is not supported by `DayOfWeek`, `stream` is invalidated, but otherwise unmodified&period; The behavior is undefined unless `STREAM` is BDEX&hyphen;compliant&period; Note that `version` is not written to `stream`&period; See the `bslx` package&hyphen;level documentation for more information on BDEX streaming of value&hyphen;semantic types and containers&period;

== Return Value

a reference to `stream`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *stream*
| output stream receiving the BDEX encoding
| *value*
| enumeration value to stream
| *version*
| BDEX format version to use
|===


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