CatapultServer
v0.5.0.1 (Elephant)
functions.h
Go to the documentation of this file.
1
21
#pragma once
22
#include <functional>
23
24
namespace
catapult
{
25
27
using
action
= std::function<void ()>;
28
30
template
<
typename
... TArgs>
31
using
predicate
= std::function<bool (TArgs...)>;
32
34
template
<
typename
... TArgs>
35
using
consumer
= std::function<void (TArgs...)>;
36
38
template
<
typename
T>
39
using
supplier
= std::function<T ()>;
40
}
catapult::predicate
std::function< bool(TArgs...)> predicate
A predicate function.
Definition:
functions.h:31
catapult::supplier
std::function< T()> supplier
A (stateless) supplier function.
Definition:
functions.h:39
catapult::action
std::function< void()> action
An action function.
Definition:
functions.h:27
catapult
Definition:
AddressExtractionExtension.cpp:28
catapult::consumer
std::function< void(TArgs...)> consumer
A consumer function.
Definition:
functions.h:35
catapult-server
src
catapult
functions.h
Generated by
1.8.16