Print the specified object to the specified stream using operator<<.
Declared in <bdlb_printmethods.h>
static
std::ostream&
print(
std::ostream& stream,
TYPE const& object,
int level,
int spacesPerLevel);
Note that a compiler error will result if the specified TYPE does not have a << output stream operator.
reference to stream
| Name | Description |
|---|---|
| stream | output stream |
| object | object to print |
| level | initial indentation level |
| spacesPerLevel | spaces per indentation level |