13 lines
261 B
C++
13 lines
261 B
C++
#pragma once
|
|
|
|
#include <iostream>
|
|
#include <vector>
|
|
|
|
template <typename T>
|
|
void print_vec(const std::vector<const T> vec) {
|
|
std::cout << "[ (" << vec.size() << ")\n";
|
|
for (const T it : vec) {
|
|
std::cout << " " << it << "\n";
|
|
}
|
|
std::cout << "]\n";
|
|
}
|