source:
doc/papers/general/evaluation/cpp-vprint.hpp
@
ce1d721
Last change on this file since ce1d721 was 604e76d, checked in by , 6 years ago | |
---|---|
|
|
File size: 263 bytes |
Rev | Line | |
---|---|---|
[604e76d] | 1 | #pragma once |
2 | #include <ostream> | |
3 | #include "object.hpp" | |
4 | ||
5 | void print(std::ostream& out, const printable& x) { x.print(out); } | |
6 | ||
7 | template<typename... Args> void print(std::ostream& out, const printable& x, const Args&... rest) { | |
8 | x.print(out); | |
9 | print(out, rest...); | |
10 | } |
Note: See TracBrowser
for help on using the repository browser.