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