include/nestlog -> include/indentlog
This commit is contained in:
parent
8268eef8b2
commit
61441f2513
21 changed files with 0 additions and 0 deletions
25
include/indentlog/array.hpp
Normal file
25
include/indentlog/array.hpp
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/* @file array.hpp */
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <iostream>
|
||||
#include <array>
|
||||
|
||||
namespace std {
|
||||
template<typename T, size_t N>
|
||||
inline std::ostream &
|
||||
operator<<(std::ostream & os,
|
||||
std::array<T, N> const & v)
|
||||
{
|
||||
os << "[";
|
||||
for(size_t i = 0; i < N; ++i) {
|
||||
if(i > 0)
|
||||
os << " ";
|
||||
os << v[i];
|
||||
}
|
||||
os << "]";
|
||||
return os;
|
||||
} /*operator<<*/
|
||||
} /*namespace std*/
|
||||
|
||||
/* end array.hpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue