6 #ifndef DUNE_STREAMOPERATORS_HH 7 #define DUNE_STREAMOPERATORS_HH 26 template<
typename... Ts>
28 inline std::ostream&
operator<<(std::ostream& stream,
const std::tuple<Ts...>& t)
34 [&](
auto i){stream<<std::get<i>(t)<<
",";});
35 stream<<
std::get<
sizeof...(Ts)-1>(t);
42 template<
typename... Ts>
43 inline std::istream&
operator>>(std::istream& stream, std::tuple<Ts...>& t)
46 [&](
auto i){stream>>std::get<i>(t);});
51 template<
typename T, std::
size_t N>
52 inline std::ostream& operator<<(std::ostream& stream, const std::array<T,N>& a)
57 for(std::size_t
i=0;
i<N-1; ++
i)
std::ostream & operator<<(std::ostream &s, const bigunsignedint< k > &x)
Definition: bigunsignedint.hh:301
std::istream & operator>>(std::istream &stream, std::tuple< Ts... > &t)
Read a std::tuple.
Definition: streamoperators.hh:43
I i
Definition: hybridmultiindex.hh:328
Dune namespace
Definition: alignedallocator.hh:12
constexpr auto get(std::integer_sequence< T, II... >, std::integral_constant< std::size_t, pos >={})
Return the entry at position pos of the given sequence.
Definition: integersequence.hh:22
constexpr void forEach(Range &&range, F &&f)
Range based for loop.
Definition: hybridutilities.hh:261