Kagome
Polkadot Runtime Engine in C++17
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>
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
Number-based marker-type for using as tag.
Definition: unused.hpp:16
bool operator==(const Unused< N > &, const Unused< N > &)
Definition: unused.hpp:27
static constexpr size_t tag
Definition: unused.hpp:18