Load into the specified variable the MonthOfYear::Enum 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 by MonthOfYear, variable is unaltered and stream is invalidated, but otherwise unmodified. If version is supported by MonthOfYear but stream becomes invalid during this operation, variable has an undefined, but valid, state. The behavior is undefined unless STREAM is BDEX‐compliant. 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.

Synopsis

Declared in <bdlt_monthofyear.h>

template<class STREAM>
STREAM&
bdexStreamIn(
    STREAM& stream,
    MonthOfYear::Enum& variable,
    int version);

Created with MrDocs