kokkos-execution
0.0.1
Toggle main menu visibility
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
6
#include "
kokkos-execution/stdexec.hpp
"
7
8
namespace
Tests::Utils
{
9
10
template
<
typename
Sndr,
typename
Tag,
typename
... Env>
11
concept
has_completion_scheduler_for
=
12
std::invocable<stdexec::get_completion_scheduler_t<Tag>, stdexec::env_of_t<Sndr>, Env...>;
13
29
template
<
typename
OpState>
30
concept
operation_state
= stdexec::operation_state<OpState> &&
requires
(OpState& op_state) {
31
{ op_state.start() }
noexcept
-> std::same_as<void>;
32
};
33
41
template
<
typename
DomainOrTag,
typename
... Args>
42
concept
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
Tests::Utils::has_completion_scheduler_for
Definition
stdexec.hpp:11
Tests::Utils::has_nothrow_apply_sender
Check that apply_sender is noexcept.
Definition
stdexec.hpp:42
Tests::Utils::operation_state
A stricter variant of stdexec::operation_state.
Definition
stdexec.hpp:30
stdexec.hpp
Tests::Utils
Definition
test_sync_wait.cpp:20
tests
utils
stdexec.hpp
Generated on
for kokkos-execution by
1.18.0