Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
unused.hpp
Go to the documentation of this file.
1
6
#ifndef KAGOME_UNUSED
7
#define KAGOME_UNUSED
8
9
#include "
common/empty.hpp
"
10
#include "
common/tagged.hpp
"
11
12
namespace
kagome
{
13
15
template
<
size_t
Num>
16
struct
NumTag
{
17
private
:
18
static
constexpr
size_t
tag
= Num;
19
};
20
23
template
<
size_t
N>
24
using
Unused
=
Tagged<Empty, NumTag<N>
>;
25
26
template
<
size_t
N>
27
bool
operator==
(
const
Unused<N>
&,
const
Unused<N>
&) {
28
return
true
;
29
}
30
31
}
// namespace kagome
32
33
#endif // KAGOME_UNUSED
empty.hpp
kagome::NumTag
Number-based marker-type for using as tag.
Definition:
unused.hpp:16
kagome::operator==
bool operator==(const Unused< N > &, const Unused< N > &)
Definition:
unused.hpp:27
kagome
tagged.hpp
kagome::NumTag::tag
static constexpr size_t tag
Definition:
unused.hpp:18
kagome::Tagged
Definition:
tagged.hpp:29
core
common
unused.hpp
Generated by
1.8.11