Kagome
Polkadot Runtime Engine in C++17
empty.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_EMPTY
7 #define KAGOME_EMPTY
8 
9 namespace kagome {
10 
13  struct Empty {
14  bool operator==(const Empty &) const {
15  return true;
16  }
17  };
18 
19  template <class Stream>
20  Stream &operator<<(Stream &s, const Empty &) {
21  return s;
22  }
23 
24  template <class Stream>
26  return s;
27  }
28 
29 } // namespace kagome
30 
31 #endif // KAGOME_EMPTY
bool operator==(const Empty &) const
Definition: empty.hpp:14
Stream & operator>>(Stream &s, Empty &)
Definition: empty.hpp:25
libp2p::connection::Stream Stream
Stream & operator<<(Stream &s, const Empty &)
Definition: empty.hpp:20