Print the value held by the specified optional data, if engaged.
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);
| Name | Description |
|---|---|
| stream | output stream to which data is printed |
| data | optional value to print, or "NULL" if disengaged |
| level | indentation level as defined by the BDE print contract |
| spacesPerLevel | spaces per indentation level; negative for single-line output |
| traits | unused trait tag for overload resolution |