kokkos-execution
0.0.1
Toggle main menu visibility
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
(!stdexec::dependent_sender<sndr_t>);
16
static_assert
(
17
stdexec::get_completion_signatures<sndr_t>() == stdexec::completion_signatures<stdexec::set_stopped_t()>{});
18
static_assert
(
19
stdexec::get_completion_signatures<sndr_t, stdexec::env<>>()
20
== stdexec::completion_signatures<stdexec::set_stopped_t()>{});
21
24
25
return
true
;
26
}
27
28
}
// namespace Tests::Utils
29
30
#endif
// KOKKOS_EXECUTION_TESTS_UTILS_JUST_STOPPED_HPP
stdexec.hpp
Tests::Utils
Definition
atomic.hpp:59
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.18.0