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
6
17
18namespace Tests {
19
20constexpr struct PropA : public ::stdexec::__query<PropA> {
22
23struct PropB : public ::stdexec::__query<PropB> { };
24
30TEST(check_rcvr_env_queryable_with, and_not) {
31 auto sndr = stdexec::just() | Tests::Utils::check_rcvr_env_queryable_with<PropA>()
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
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
Tests::PropA prop_a