Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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>
25
Stream
&
operator>>
(
Stream
&s,
Empty
&) {
26
return
s;
27
}
28
29
}
// namespace kagome
30
31
#endif // KAGOME_EMPTY
kagome::Empty::operator==
bool operator==(const Empty &) const
Definition:
empty.hpp:14
kagome::operator>>
Stream & operator>>(Stream &s, Empty &)
Definition:
empty.hpp:25
kagome
kagome::Empty
Definition:
empty.hpp:13
kagome::network::Stream
libp2p::connection::Stream Stream
Definition:
protocol_base_impl.hpp:23
kagome::operator<<
Stream & operator<<(Stream &s, const Empty &)
Definition:
empty.hpp:20
core
common
empty.hpp
Generated by
1.8.11