1#ifndef DUNE_COMMON_IOSTREAM_HH
2#define DUNE_COMMON_IOSTREAM_HH
19 struct MatchTraits< const T >
21 typedef const typename MatchTraits< T >::Type Type;
25 struct MatchTraits< char[ n ] >
27 typedef std::string Type;
34 explicit Match (
const T &value )
39 Match (
const Match< U > &other )
40 : value_( other.value_ )
43 bool operator() (
const T &value )
const
45 return (value_ == value);
54 template<
class char_type,
class traits,
class T >
55 inline std::basic_istream< char_type, traits > &
56 operator>> ( std::basic_istream< char_type, traits > &in,
const Match< T > &match )
61 in.clear( std::ios_base::failbit );
68 template<
class char_type,
class traits >
69 inline bool isGood ( std::basic_istream< char_type, traits > &in )
71 bool good = in.good();
86 inline iostream::Match< typename iostream::MatchTraits< T >::Type >
87 match (
const T &value )
89 return iostream::Match< typename iostream::MatchTraits< T >::Type >( value );
Stream & operator>>(Stream &stream, std::tuple< Ts... > &t)
Read a std::tuple.
Definition: streamoperators.hh:43
Dune namespace.
Definition: alignedallocator.hh:13