kokkos-execution
0.0.1
Loading...
Searching...
No Matches
just_stopped.hpp
Go to the documentation of this file.
1
#ifndef KOKKOS_EXECUTION_TESTS_UTILS_JUST_STOPPED_HPP
2
#define KOKKOS_EXECUTION_TESTS_UTILS_JUST_STOPPED_HPP
3
4
#include "
kokkos-execution/stdexec.hpp
"
5
6
#include "
tests/utils/stdexec.hpp
"
7
8
namespace
Tests::Utils
{
9
10
template
<
typename
SchedulerType,
typename
Tag,
typename
... Args>
11
consteval
bool
check_continues_on_after_just_stopped
() {
12
using
sndr_t =
13
decltype
(stdexec::just_stopped() | stdexec::continues_on(std::declval<SchedulerType>()) | Tag{}(std::declval<Args>()...));
14
15
static_assert
(
Tests::Utils::has_completion_signatures
<sndr_t, stdexec::__mset<stdexec::set_stopped_t()>>);
16
17
static_assert
(
18
Tests::Utils::has_completion_signatures
<sndr_t, stdexec::__mset<stdexec::set_stopped_t()>, stdexec::env<>>);
19
22
23
return
true
;
24
}
25
26
}
// namespace Tests::Utils
27
28
#endif
// KOKKOS_EXECUTION_TESTS_UTILS_JUST_STOPPED_HPP
Tests::Utils::has_completion_signatures
Definition
stdexec.hpp:15
stdexec.hpp
Tests::Utils
Definition
atomic.hpp:30
Tests::Utils::check_continues_on_after_just_stopped
consteval bool check_continues_on_after_just_stopped()
Definition
just_stopped.hpp:11
stdexec.hpp
tests
utils
just_stopped.hpp
Generated on
for kokkos-execution by
1.15.0