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
28TEST(check_rcvr_env_queryable_with, and_not) {
29 auto sndr = stdexec::just() | Tests::Utils::check_rcvr_env_queryable_with<PropA>()
31 | stdexec::write_env(stdexec::prop{prop_a, 42.});
32
33 stdexec::sync_wait(std::move(sndr)); // NOLINT(performance-move-const-arg)
34}
35
36} // 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