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