kokkos-utils 0.0.1
 
Loading...
Searching...
No Matches
EventTypeMatcher.hpp
Go to the documentation of this file.
1#ifndef KOKKOS_UTILS_CALLBACKS_EVENTTYPEMATCHER_HPP
2#define KOKKOS_UTILS_CALLBACKS_EVENTTYPEMATCHER_HPP
3
6
8{
9
15template <Matcher MatcherType, Event... EventTypes> requires MatcherFor<MatcherType, EventTypes...>
17{
18 template <EventOneOf<EventTypes...> EventType> requires MatcherFor<MatcherType, EventType>
19 bool operator()(const EventType& event) {
20 return matcher(event);
21 }
22
23 MatcherType matcher;
24};
25
26} // namespace Kokkos::utils::callbacks
27
28#endif // KOKKOS_UTILS_CALLBACKS_EVENTTYPEMATCHER_HPP
Concept to constrain any event type that is one of the given event types.
Definition Events.hpp:278
Check that Callable is a matcher for each event in EventTypes.
Definition Matcher.hpp:35
Callable is a matcher if it is invocable with at least one event type from Kokkos::utils::callbacks::...
Definition Matcher.hpp:31
::testing::Types< Event< void >, Event< execution_space > > EventTypes
Restrict the event types that can be matched by matcher to the subset EventTypes.