5#define YACLIB_DEFINE_VOID_COMPARE(type) \
6 constexpr bool operator==(type, type) noexcept { \
9 constexpr bool operator!=(type, type) noexcept { \
12 constexpr bool operator<(type, type) noexcept { \
15 constexpr bool operator<=(type, type) noexcept { \
18 constexpr bool operator>=(type, type) noexcept { \
21 constexpr bool operator>(type, type) noexcept { \
25#define YACLIB_DEFINE_VOID_TYPE(type) \
27 YACLIB_DEFINE_VOID_COMPARE(type)
34template <
typename V =
void,
typename E = StopError>
37template <
typename V =
void,
typename E = StopError>
40template <
typename V,
typename E>
43template <
typename V =
void,
typename E = StopError>
46template <
typename V =
void,
typename E = StopError>
49template <
typename V =
void,
typename E = StopError>
Provides a mechanism to access the result of async operations.
Provides a mechanism to access the result of async operations.
Provides a mechanism to access the result of async operations.
Encapsulated return value from caller.
Provides a mechanism to schedule the some async operations TODO(MBkkt) add description.
#define YACLIB_DEFINE_VOID_TYPE(type)
Contract< V, E > MakeContract()
Creates related future and promise.