24 template<
typename Rec,
typename Env>
32 explicit Type(Rec reciever, Env env) : Base(
util::move(reciever)), m_env(
util::move(env)) {}
35 auto get_env() const& -> Env {
return m_env; }
41 template<concepts::Receiver Rec,
typename Env>
44 template<
typename Send,
typename Env>
50 [[no_unique_address]] Env
m_env;
53 template<concepts::RemoveCVRefSameAs<Type> Self,
typename En>
59 template<concepts::RemoveCVRefSameAs<Type> Self, concepts::Receiver Rec>
70 template<concepts::Sender Send,
typename Env>
74 template<concepts::CopyConstructible Env, concepts::Sender Send>
76 return Sender<Send, Env> { util::forward<Send>(sender), util::forward<Env>(env) };
81 template<concepts::Sender Send>
Definition sender_to.h:11
meta::Type< ReceiverT< Rec, Env > > Receiver
Definition with_env.h:42
meta::Type< SenderT< meta::RemoveCVRef< Send >, meta::Decay< Env > > > Sender
Definition with_env.h:71
constexpr auto make_env
Create an environment with overrides for queries.
Definition make_env.h:147
constexpr auto with_debug_env
Adapts a sender to run with a debug environment.
Definition with_env.h:119
constexpr auto with_env
Adapts a sender to run with a specified environment.
Definition with_env.h:107
meta::Type< receiver_interface_ns::ReceiverAdaptor< Self, Base > > ReceiverAdaptor
Definition receiver_adaptor.h:236
constexpr auto with
Specify an override for an environment query.
Definition make_env.h:112
decltype(make_env(util::declval< BaseEnv >(), util::declval< Withs >()...)) MakeEnv
Represent an environment with overrides for queries.
Definition make_env.h:189
constexpr auto get_env
Definition get_env.h:27
constexpr auto connect
Definition connect.h:42
constexpr auto is_debug_env
Returns whether the given environment is a debug environment.
Definition is_debug_env.h:39
constexpr auto curry
Definition curry.h:140
di::meta::Decay< decltype(T)> Tag
Definition tag_invoke.h:28
constexpr auto forward_like(U &&value) -> decltype(auto)
Definition forward_like.h:8
constexpr tag_invoke_detail::TagInvokeFn tag_invoke
Definition tag_invoke.h:22
constexpr auto c_
A value of type Constexpr<val>.
Definition constexpr.h:252
constexpr auto empty_env
Definition empty_env.h:6
auto operator()(Send &&sender) const
Definition with_env.h:82
auto operator()(Env &&env, Send &&sender) const
Definition with_env.h:75
Type(Rec reciever, Env env)
Definition with_env.h:32
void is_sender
Definition with_env.h:47
friend auto tag_invoke(types::Tag< get_completion_signatures >, Self &&, En &&) -> meta::CompletionSignaturesOf< meta::Like< Self, Send >, Env >
Definition with_env.h:54
Env m_env
Definition with_env.h:50
friend auto tag_invoke(types::Tag< connect >, Self &&self, Rec receiver)
Definition with_env.h:61
Send m_sender
Definition with_env.h:49