BloombergLP::bdlt::MonthOfYear::bdexStreamIn

Assign to variable the value read from stream using the BDEX protocol.

Synopsis

Declared in <bdlt_monthofyear.h>

template<class STREAM>
static
STREAM&
bdexStreamIn(
    STREAM& stream,
    MonthOfYear::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. If stream is initially invalid, this operation has no effect. If version is not supported, variable is unaltered and stream is invalidated, but otherwise unmodified. If version is supported but stream becomes invalid during this operation, variable has an undefined, but valid, state. Note that no version is read from stream. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

Return Value

a reference to stream

Parameters

NameDescription
streaminput stream providing the BDEX encoding
variablereceives the streamed enumeration value
versionBDEX format version to use