Printer helper for standard types, printing on a new line.
More...
|
| template<typename T> |
| | println (const T &val, char sep=' ') |
| | Cretes a printer object that prints on a new line.
|
| template<typename T> |
| | print (const T &val, char sep=' ') |
| | Cretes a printer object.
|
|
| std::ostream & | operator<< (std::ostream &out, const println &pr) |
| | Prints printer object on a new line.
|
Printer helper for standard types, printing on a new line.
Same as print, but prints on a new line (appending a
at the end).
Examples
std::tuple<int, double, std::string> tu = {5, 0.1, "str"};
Printer helper for standard types.
Printer helper for standard types, printing on a new line.
Definition at line 506 of file tgen.h.
◆ println()
template<typename T>
| tgen::println::println |
( |
const T & | val, |
|
|
char | sep = ' ' ) |
|
inline |
Cretes a printer object that prints on a new line.
- Parameters
-
| val | Value to be printed. |
| sep | Separator for values printed in the same line. |
Definition at line 508 of file tgen.h.
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & | out, |
|
|
const println & | pr ) |
|
friend |
Prints printer object on a new line.
- Parameters
-
| out | Stream to print to. |
| pr | Printer object. |
Definition at line 517 of file tgen.h.
The documentation for this struct was generated from the following files:
- /home/runner/work/tgen/tgen/single_include/tgen.h
- base.dox