BloombergLP::bslx::OutStreamFunctions::bdexStreamOut

BDEX-stream a long value to stream as a 32-bit int.

Synopsis

Declared in <bslx_outstreamfunctions.h>

template<class STREAM>
STREAM&
bdexStreamOut(
    STREAM& stream,
    long const& value,
    int version = 0);

Description

Write the specified long value to the specified output stream as a 32-bit int, and return a reference to stream. The optionally specified version is ignored. If stream is initially invalid, this operation has no effect. Note that for platforms where long is not equivalent to int32_t, this operation may be lossy. 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
streamoutput stream to write to
valuelong integer value to externalize
versionignored version number