Iros
 
Loading...
Searching...
No Matches
just_from.h
Go to the documentation of this file.
1#pragma once
2
6#include "di/meta/util.h"
7
8namespace di::execution {
9namespace just_from_ns {
10 struct Function {
11 template<concepts::MovableValue Fun>
13 auto operator()(Fun&& function) const {
14 return just() | then(util::forward<Fun>(function));
15 }
16 };
17}
18
34constexpr inline auto just_from = just_from_ns::Function {};
35}
Definition invoke.h:58
Definition just_from.h:9
Definition bulk.h:30
constexpr auto then
A sender that maps values into another value.
Definition then.h:276
constexpr auto just_from
Creates a sender from a function.
Definition just_from.h:34
constexpr auto just
Definition just.h:86
Definition as_bool.h:8
Definition just_from.h:10