WaveBlocksND
stdarray2stream.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <iostream>
4 #include <array>
5 
6 
7 namespace std {
8  template<class T, std::size_t D>
9  std::ostream &operator<<(std::ostream &out, const std::array<T,D> &value)
10  {
11  out << '{';
12  for (std::size_t i = 0; i < D; i++) {
13  if (i != 0)
14  out << ", ";
15  out << value[i];
16  }
17  out << '}';
18  return out;
19  }
20 }
Definition: stdarray2stream.hpp:7