Write the specified printer to the specified output stream.

Synopsis

Declared in <bdlb_variantprinter.h>

template<class t_VARIANT>
std::ostream&
operator<<(
    std::ostream& stream,
    VariantPrinter<t_VARIANT> const& printer);

Description

Write the value of the specified printer object to the specified output stream in a single‐line format, and return a reference to stream. If stream is not valid on entry, this operation has no effect. Note that this human‐readable format is not fully specified, can change without notice, and is logically equivalent to: ` print(stream, 0, ‐1); `

Return Value

a reference to stream

Parameters

Name

Description

stream

output stream

printer

printer object to write

Created with MrDocs