CPPConsole
Loading...
Searching...
No Matches
printall.hpp
Go to the documentation of this file.
1#ifndef __CPP_CONSOLE_PRINTALL_HPP__
2#define __CPP_CONSOLE_PRINTALL_HPP__
3
4#include "console.hpp"
5
9namespace console {
10template <typename T>
11void printAll(T t) {
12 print(t);
13}
14
20template <typename T, typename... Args>
21void printAll(T t, Args... args) {
22 print(t);
23 print(" ");
24 printAll(args...);
25}
26
27template <typename T>
28void printlnAll(T t) {
29 println(t);
30}
31
37template <typename T, typename... Args>
38void printlnAll(T t, Args... args) {
39 println(t);
40 printlnAll(args...);
41}
42} // namespace console
43
44#endif
Namespace Containing all console commands.
Definition ansi.hpp:16
void println()
Prints out a newline.
Definition console.hpp:100
void print()
Definition console.hpp:83
void printlnAll(T t)
Definition printall.hpp:28
void printAll(T t)
Definition printall.hpp:11