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.

Synopsis

Declared in <bslx_outstreamfunctions.h>

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

Created with MrDocs