kokkos-execution
0.0.1
Loading...
Searching...
No Matches
check_sync_wait.hpp
Go to the documentation of this file.
1
#ifndef KOKKOS_EXECUTION_TESTS_UTILS_CHECK_SYNC_WAIT_HPP
2
#define KOKKOS_EXECUTION_TESTS_UTILS_CHECK_SYNC_WAIT_HPP
3
4
#include "
tests/utils/stdexec.hpp
"
5
6
namespace
Tests::Utils
{
7
9
template
<
typename
Domain, stdexec::sender Sndr>
10
consteval
bool
check_nothrow_apply_sender
() {
11
static_assert
(stdexec::__never_sends<stdexec::set_error_t, Sndr>);
12
static_assert
(
Tests::Utils::has_nothrow_apply_sender<Domain, stdexec::sync_wait_t, Sndr>
);
13
static_assert
(!
Tests::Utils::has_nothrow_apply_sender<stdexec::sync_wait_t, Sndr>
);
14
return
true
;
15
}
16
17
}
// namespace Tests::Utils
18
19
#endif
// KOKKOS_EXECUTION_TESTS_UTILS_CHECK_SYNC_WAIT_HPP
Tests::Utils::has_nothrow_apply_sender
Check that apply_sender is noexcept.
Definition
stdexec.hpp:49
Tests::Utils
Definition
atomic.hpp:30
Tests::Utils::check_nothrow_apply_sender
consteval bool check_nothrow_apply_sender()
Definition
check_sync_wait.hpp:10
stdexec.hpp
tests
utils
check_sync_wait.hpp
Generated on
for kokkos-execution by
1.15.0