1#ifndef KOKKOS_EXECUTION_TESTS_UTILS_CHECK_RCVR_ENV_HPP
2#define KOKKOS_EXECUTION_TESTS_UTILS_CHECK_RCVR_ENV_HPP
12template <
typename ExpectedEnv,
typename Sndr>
20 template <stdexec::__decays_to<CheckRcvrEnvSender> Self, stdexec::receiver Rcvr>
22 constexpr STDEXEC_EXPLICIT_THIS_BEGIN(
23 auto connect)(
this Self&& self, Rcvr rcvr)
26 static_assert(std::same_as<ExpectedEnv, stdexec::env_of_t<Rcvr>>);
27 return stdexec::connect(std::forward<Self>(self).
sndr, std::move(rcvr));
29 STDEXEC_EXPLICIT_THIS_END(connect)
35template <typename ExpectedEnv>
39 return stdexec::__closure(*
this);
42 template <stdexec::sender Sndr>
49template <
typename ExpectedEnv>
#define KOKKOS_EXECUTION_IMPL_FORWARDING_ATTRIBUTES_GET_ENV(_type_, _obj_)
#define KOKKOS_EXECUTION_COMPL_SIGS_KEEP(_decayed_self_type_, _sndr_type_)
constexpr check_rcvr_env_t< ExpectedEnv > check_rcvr_env
stdexec::sender_tag sender_concept
Check that the receiver environment is of type ExpectedEnv.
constexpr auto operator()(Sndr &&sndr) const
constexpr auto operator()() const noexcept
#define KOKKOS_EXECUTION_IMPL_MEMBER_CVREF_T(_Self_, _member_)
Yields the type of member _member_ as accessed from expression _Self_, preserving the cv and ref qual...