BloombergLP::bslx::operator<<

Write the BDEX-compliant value to the specified output stream.

Synopsis

Declared in <bslx_genericoutstream.h>

template<
    class STREAMBUF,
    class TYPE>
GenericOutStream<STREAMBUF>&
operator<<(
    GenericOutStream<STREAMBUF>& stream,
    TYPE const& value);

Description

Write the specified value to the specified output stream following the requirements of the BDEX protocol (see the bslx package-level documentation), and return a reference to stream. The behavior is undefined unless TYPE is BDEX-compliant.

Return Value

a reference to stream

Parameters

NameDescription
streamoutput stream to write to
valuevalue to externalize