kokkos-execution 0.0.1
Loading...
Searching...
No Matches
stdexec.hpp
Go to the documentation of this file.
1#ifndef KOKKOS_EXECUTION_TESTS_UTILS_STDEXEC_HPP
2#define KOKKOS_EXECUTION_TESTS_UTILS_STDEXEC_HPP
3
4#include <concepts>
5
7
8namespace Tests::Utils {
9
10template <typename Sndr, typename Tag, typename... Env>
12 std::invocable<stdexec::get_completion_scheduler_t<Tag>, stdexec::env_of_t<Sndr>, Env...>;
13
29template <typename OpState>
30concept operation_state = stdexec::operation_state<OpState> && requires(OpState& op_state) {
31 { op_state.start() } noexcept -> std::same_as<void>;
32};
33
41template <typename DomainOrTag, typename... Args>
42concept has_nothrow_apply_sender = requires(DomainOrTag domain_or_tag, Args&&... args) {
43 { domain_or_tag.apply_sender(std::forward<Args>(args)...) } noexcept;
44};
45
46} // namespace Tests::Utils
47
48#endif // KOKKOS_EXECUTION_TESTS_UTILS_STDEXEC_HPP
Check that apply_sender is noexcept.
Definition stdexec.hpp:42
A stricter variant of stdexec::operation_state.
Definition stdexec.hpp:30