kokkos-execution
0.0.1
Toggle main menu visibility
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 "
tests/utils/check_rcvr_env_queryable_with.hpp
"
4
15
16
namespace
Tests
{
17
18
constexpr
struct
PropA
:
public
::stdexec::__query<PropA> {
19
}
prop_a
{};
20
21
struct
PropB
:
public
::stdexec::__query<PropB> { };
22
28
consteval
auto
get_sndr
() {
29
return
stdexec::just() |
Tests::Utils::check_rcvr_env_queryable_with<PropA>
()
30
|
Tests::Utils::check_rcvr_env_not_queryable_with<PropB>
() | stdexec::write_env(stdexec::prop{
prop_a
, 42.});
31
}
32
34
TEST(check_rcvr_env_queryable_with, and_not_rvalue) {
35
stdexec::sync_wait(
get_sndr
());
36
}
37
39
TEST(check_rcvr_env_queryable_with, and_not_lvalue) {
40
auto
sndr =
get_sndr
();
41
stdexec::sync_wait(sndr);
42
}
43
44
}
// namespace Tests
check_rcvr_env_queryable_with.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:39
Tests::get_sndr
consteval auto get_sndr()
Definition
test_check_rcvr_env.cpp:24
Tests::prop_a
Tests::PropA prop_a
Tests::PropA
Definition
test_check_rcvr_env.cpp:18
Tests::PropB
Definition
test_check_rcvr_env.cpp:21
tests
utils
test_check_rcvr_env_queryable_with.cpp
Generated on
for kokkos-execution by
1.18.0