source: doc/generic_types/evaluation/cpp-vprint.hpp @ 3fb7f5e

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerresolv-newwith_gc
Last change on this file since 3fb7f5e was 0d10090, checked in by Aaron Moss <a3moss@…>, 5 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.