[#BloombergLP-bbldc-DayCountConvention-bdexStreamIn]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bbldc.adoc[bbldc]::xref:BloombergLP/bbldc/DayCountConvention.adoc[DayCountConvention]::bdexStreamIn
:relfileprefix: ../../../
:mrdocs:

Assign to `variable` the value read from `stream` using the BDEX protocol&period;

== Synopsis

Declared in `&lt;bbldc&lowbar;daycountconvention&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STREAM&gt;
static
STREAM&
bdexStreamIn(
    STREAM& stream,
    xref:BloombergLP/bbldc/DayCountConvention/Enum.adoc[DayCountConvention::Enum]& variable,
    int version);
----

== Description

Assign to the specified `variable` the value read from the specified input `stream` using the specified `version` format, and return a reference to `stream`&period; If `stream` is initially invalid, this operation has no effect&period; If `version` is not supported, `variable` is unaltered and `stream` is invalidated, but otherwise unmodified&period; If `version` is supported but `stream` becomes invalid during this operation, `variable` has an undefined, but valid, state&period; Note that no version is read from `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*
| input stream providing the BDEX encoding
| *variable*
| receives the streamed enumeration value
| *version*
| BDEX format version to use
|===


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