BloombergLP::bslx::InStreamFunctions::bdexStreamIn

Assign a double value read from stream to variable.

Synopsis

Declared in <bslx_instreamfunctions.h>

template<class STREAM>
STREAM&
bdexStreamIn(
    STREAM& stream,
    double& variable,
    int version = 0);

Description

Assign to the specified variable the double value read from the specified input stream, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state. 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 from which to read
variableobject to receive the unexternalized value
versionoptional BDEX version (ignored for this type)