This repository has been archived on 2024-01-18. You can view files and clone it, but cannot push or open issues or pull requests.
DamesEtCo/includes/utils.hpp

14 lines
261 B
C++
Raw Normal View History

2023-12-31 03:29:40 +01:00
#pragma once
#include <iostream>
#include <vector>
template <typename T>
2023-12-31 04:59:45 +01:00
void print_vec(const std::vector<const T> vec) {
2023-12-31 03:29:40 +01:00
std::cout << "[ (" << vec.size() << ")\n";
2023-12-31 04:59:45 +01:00
for (const T it : vec) {
2023-12-31 03:29:40 +01:00
std::cout << " " << it << "\n";
}
std::cout << "]\n";
}