9#include "type_list.hpp"
28template <
typename Proc>
30 { p.flush() } -> std::same_as<void>;
53template <
typename Proc,
typename Event>
55 { p.handle(std::move(e)) } -> std::same_as<void>;
73template <
typename Proc,
typename Event>
75 { p.handle(e) } -> std::same_as<void>;
94template <
typename Proc,
typename... Events>
118template <
typename Proc,
typename... Events>
126template <
typename Proc,
typename TypeList>
struct handles_event_list_impl {
130template <
typename Proc,
typename... Events>
131struct handles_event_list_impl<Proc,
type_list<Events...>>
132 : std::bool_constant<handler_for<Proc, Events...>> {};
170template <
typename Proc,
typename EventList>
172 internal::handles_event_list_impl<Proc, EventList>::value;
178template <
typename Proc,
typename TypeList>
struct is_processor_of_list_impl {
182template <
typename Proc,
typename... Events>
183struct is_processor_of_list_impl<Proc,
type_list<Events...>>
184 : std::bool_constant<processor<Proc, Events...>> {};
222template <
typename Proc,
typename EventList>
224 internal::is_processor_of_list_impl<Proc, EventList>::value;
Concept that is satisfied when a processor handles an event type by const lvalue reference.
Definition processor.hpp:74
Concept that is satisfied when a processor handles flushing.
Definition processor.hpp:29
Concept that is satisfied when a processor handles the given event types.
Definition processor.hpp:95
Concept that is satisfied when a processor handles the given event types and flush.
Definition processor.hpp:119
Concept that is satisfied when a processor handles an event type by rvalue reference.
Definition processor.hpp:54
Concept that is satisfied when a type is a tcspc::type_list specialization.
Definition type_list.hpp:64
constexpr bool is_processor_of_list_v
Trait variable to check whether a processor handles a list of event types and flush.
Definition processor.hpp:223
constexpr bool handles_event_list_v
Trait variable to check whether a processor handles a list of event types.
Definition processor.hpp:171
libtcspc namespace.
Definition acquire.hpp:30
Compile-time representation of a list of types.
Definition type_list.hpp:38