blob: 2a74a7bab4bd7958248c0dad25b14b71ee68a421 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#pragma once
namespace std {
template <typename T>
inline ::std::ostream& operator<<(::std::ostream& os, const ::std::vector<T>& v) {
if( v.size() > 0 )
{
bool is_first = true;
for( const auto& i : v )
{
if(!is_first)
os << ", ";
is_first = false;
os << i;
}
}
return os;
}
};
|