source: doc/generic_types/evaluation/cpp-vprint.hpp @ 4d84cb2

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since 4d84cb2 was a381b46, checked in by Aaron Moss <a3moss@…>, 7 years ago

Minor cleanup, also filled in benchmark source appendix

  • Property mode set to 100644
File size: 263 bytes
Line 
1#pragma once
2#include <ostream>
3#include "object.hpp"
4
5void print(std::ostream& out, const printable& x) { x.print(out); }
6
7template<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.