OGS
Stream.h
Go to the documentation of this file.
1 
15 #pragma once
16 
17 #include <algorithm>
18 #include <iterator>
19 #include <ostream>
20 #include <vector>
21 
22 template <typename T>
23 std::ostream& operator<<(std::ostream& os, const std::vector<T>& v)
24 {
25  std::copy(v.begin(), v.end(), std::ostream_iterator<T>(os, " "));
26  os << "\n";
27  return os;
28 }
std::ostream & operator<<(std::ostream &os, const std::vector< T > &v)
Definition: Stream.h:23
void copy(PETScVector const &x, PETScVector &y)
Definition: LinAlg.cpp:37