BloombergLP::bslx::OutStreamFunctions::bdexStreamOut

Write the specified bsl::vector<TYPE, ALLOC> 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 and the vector is not empty, stream is invalidated, but otherwise unmodified. Note that the specified TYPE might not require a version to be serialized and that version is not written to stream. 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,
    class TYPE,
    class ALLOC>
STREAM&
bdexStreamOut(
    STREAM& stream,
    bsl::vector<TYPE, ALLOC> const& value,
    int version);