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
4
15
16namespace Tests {
17
18constexpr struct PropA : public ::stdexec::__query<PropA> {
19} prop_a{};
20
21struct PropB : public ::stdexec::__query<PropB> { };
22
28consteval auto get_sndr() {
30 | Tests::Utils::check_rcvr_env_not_queryable_with<PropB>() | stdexec::write_env(stdexec::prop{prop_a, 42.});
31}
32
34TEST(check_rcvr_env_queryable_with, and_not_rvalue) {
35 stdexec::sync_wait(get_sndr());
36}
37
39TEST(check_rcvr_env_queryable_with, and_not_lvalue) {
40 auto sndr = get_sndr();
41 stdexec::sync_wait(sndr);
42}
43
44} // namespace Tests
constexpr check_rcvr_env_queryable_with_t< false, Queries... > check_rcvr_env_not_queryable_with
constexpr check_rcvr_env_queryable_with_t< true, Queries... > check_rcvr_env_queryable_with
consteval auto get_sndr()
Tests::PropA prop_a