1#ifndef __CPP_CONSOLE_HPP__
2#define __CPP_CONSOLE_HPP__
23 for (
auto it = value.begin(); it != value.end(); ++it) {
29 if (it != std::prev(value.end()))
print(
", ");
34 std::size_t count = 0;
35 for (
const auto& element : value) {
37 if (count != value.size() - 1)
print(
", ");
53template <
typename T,
size_t N,
54 typename std::enable_if_t<is_not_string<T>::value,
int> = 0>
57 std::size_t count = 0;
58 for (
const auto& element : arr) {
60 if (count != N - 1) std::cout <<
", ";
73void print(
const char (&arr)[N]) {
82void print(
const std::string& str) { std::cout << str; }
94 std::cout << std::endl;
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
Template for a map-like data type. Matches things like map and unordered_map.
Definition template.hpp:33
Template for a iterable data type. Matches things like vector, deque, map, etc.
Definition template.hpp:17