BloombergLP::bslim::Printer_Helper::printRaw

Print the value held by the specified optional data, if engaged.

Synopsis

Declared in <bslim_printer.h>

template<class TYPE>
static
void
printRaw(
    std::ostream& stream,
    bsl::optional<TYPE> const& data,
    int level,
    int spacesPerLevel,
    bslmf::SelectTraitCase<> traits);

Parameters

NameDescription
streamoutput stream to which data is printed
dataoptional value to print, or "NULL" if disengaged
levelindentation level as defined by the BDE print contract
spacesPerLevelspaces per indentation level; negative for single-line output
traitsunused trait tag for overload resolution