BloombergLP::bdlt::Calendar::bdexStreamIn

Assign to this object the value read from the specified input stream.

Synopsis

Declared in <bdlt_calendar.h>

template<class STREAM>
STREAM&
bdexStreamIn(
    STREAM& stream,
    int version);

Description

Assign to this object the value read from the specified input stream using the specified version format and return a reference to the modifiable stream. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation or if version is not supported, this object is unaltered. 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 the modifiable stream

Parameters

NameDescription
streaminput stream providing the BDEX encoding
versionBDEX format version to use