|
TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
|
#include <triqs/utility/report_stream.hpp>
Adapter for std::ostream that prepends a fixed-width indentation to every new line.
It inherits from std::ostream and substitutes a custom std::streambuf that injects a given number of spaces at the start of every line. Useful for nesting verbose output without manually padding each string.
Definition at line 104 of file report_stream.hpp.
Public Member Functions | |
| indented_ostream (std::ostream &os, int indent) | |
| Construct an indented stream on top of an existing ostream with a given indentation width. | |
|
inline |
Construct an indented stream on top of an existing ostream with a given indentation width.
| os | Underlying std::ostream that receives the indented output. |
| indent | Number of spaces inserted at the start of each line. |
Definition at line 132 of file report_stream.hpp.