source: doc/generic_types/evaluation/cpp-vprint.hpp @ 0d10090

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 0d10090 was 0d10090, checked in by Aaron Moss <a3moss@…>, 7 years ago

Add printing code to benchmark

  • Property mode set to 100644
File size: 264 bytes
Line 
1#pragma once
2
3#include <ostream>
4#include "object.hpp"
5
6void print(std::ostream& out, const printable& x) { x.print(out); }
7
8template<typename... Args>
9void print(std::ostream& out, const printable& x, const Args&... rest) {
10        x.print(out);
11        print(out, rest...);
12}
Note: See TracBrowser for help on using the repository browser.