BloombergLP::bslx::OutStreamFunctions::bdexStreamOutImp

BDEX-stream value to stream using the specified version.

Synopsis

Declared in <bslx_outstreamfunctions.h>

template<
    class STREAM,
    class TYPE>
STREAM&
bdexStreamOutImp(
    STREAM& stream,
    TYPE const& value,
    int version,
    IsNotEnumType const& category);

Description

Write the specified value, using the specified version format, to the specified output stream, and return a reference to stream. If stream is initially invalid, this operation has no effect. If version is not supported by TYPE, stream is invalidated, but otherwise unmodified. Note that version is not written to stream. Also note that this function is for internal use only. 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
valuevalue to externalize
versionformat version to use
categorytag selecting the non-enumeration overload