BDEX‐stream value to stream (version computed if needed).

Synopsis

Declared in <bslx_outstreamfunctions.h>

template<
    class STREAM,
    class TYPE>
STREAM&
bdexStreamOut(
    STREAM& stream,
    TYPE const& value);

Description

Write the specified value to the specified output stream, and return a reference to stream. If stream is initially invalid, this operation has no effect. If needed, first write the computed version information to the stream and if this version is not supported by TYPE, stream is invalidated. Note that the version is only needed when the (template parameter) TYPE is a bsl::vector or a user‐defined type. 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

Name

Description

stream

output stream to write to

value

value to externalize

Created with MrDocs