kokkos-execution
0.0.1
Loading...
Searching...
No Matches
test_check_rcvr_env_queryable_with.cpp
Go to the documentation of this file.
1
#include "gtest/gtest.h"
2
3
#include "
kokkos-execution/stdexec.hpp
"
4
5
#include "
tests/utils/check_rcvr_env_queryable_with.hpp
"
6
17
18
namespace
Tests
{
19
20
constexpr
struct
PropA
:
public
::stdexec::__query<PropA> {
21
}
prop_a
{};
22
23
struct
PropB
:
public
::stdexec::__query<PropB> { };
24
30
TEST(check_rcvr_env_queryable_with, and_not) {
31
auto
sndr = stdexec::just() |
Tests::Utils::check_rcvr_env_queryable_with<PropA>
()
32
|
Tests::Utils::check_rcvr_env_not_queryable_with<PropB>
()
33
| stdexec::write_env(stdexec::prop{
prop_a
, 42.});
34
35
stdexec::sync_wait(std::move(sndr));
// NOLINT(performance-move-const-arg)
36
}
37
38
}
// namespace Tests
check_rcvr_env_queryable_with.hpp
stdexec.hpp
Tests::Utils::check_rcvr_env_not_queryable_with
constexpr check_rcvr_env_queryable_with_t< false, Queries... > check_rcvr_env_not_queryable_with
Definition
check_rcvr_env_queryable_with.hpp:78
Tests::Utils::check_rcvr_env_queryable_with
constexpr check_rcvr_env_queryable_with_t< true, Queries... > check_rcvr_env_queryable_with
Definition
check_rcvr_env_queryable_with.hpp:75
Tests
Definition
test_any_sender.cpp:33
Tests::prop_a
Tests::PropA prop_a
Tests::PropA
Definition
test_check_rcvr_env_queryable_with.cpp:20
Tests::PropB
Definition
test_check_rcvr_env_queryable_with.cpp:23
tests
utils
test_check_rcvr_env_queryable_with.cpp
Generated on
for kokkos-execution by
1.15.0