di 0.1.0
Loading...
Searching...
No Matches
get_delegatee_scheduler.h
Go to the documentation of this file.
1#pragma once
2
6#include "di/util/as_const.h"
7
8namespace di::execution {
9namespace detail {
10 struct GetDelegateeSchedulerFunction : ForwardingQuery {
11 template<typename T>
12 requires(concepts::TagInvocable<GetDelegateeSchedulerFunction, T const&>)
13 constexpr auto operator()(T&& value) const -> concepts::Scheduler auto {
14 return function::tag_invoke(*this, util::as_const(value));
15 }
16
17 constexpr auto operator()() const;
18 };
19}
20
21constexpr inline auto get_delegatee_scheduler = detail::GetDelegateeSchedulerFunction {};
22}
Definition bulk.h:30
constexpr auto get_delegatee_scheduler
Definition get_delegatee_scheduler.h:21
constexpr tag_invoke_detail::TagInvokeFn tag_invoke
Definition tag_invoke.h:22
constexpr auto value
Definition value.h:34