Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Kagome
Consensus
core
Development guide
Guide for `outcome::result<T>`
Rules
Terms
Tooling
Overview
Your first Kagome chain
Runing Kagome in docker container
Start private Kagome network
Namespaces
Classes
Files
File List
core
api
application
assets
authority_discovery
authorship
blockchain
clock
common
blob.cpp
blob.hpp
buffer.hpp
buffer_back_insert_iterator.hpp
buffer_view.hpp
empty.hpp
fd_limit.cpp
fd_limit.hpp
hexutil.cpp
hexutil.hpp
literals.hpp
monadic_utils.hpp
mp_utils.cpp
mp_utils.hpp
outcome_throw.hpp
size_limited_containers.hpp
spin_lock.cpp
spin_lock.hpp
stub.hpp
tagged.hpp
type_traits.hpp
unused.hpp
uri.cpp
uri.hpp
variant_builder.hpp
visitor.hpp
wrapper.hpp
consensus
containers
crypto
filesystem
host_api
injector
log
macro
metrics
network
offchain
outcome
parachain
primitives
runtime
scale
storage
subscription
telemetry
transaction_pool
utils
docs
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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