Iros
 
Loading...
Searching...
No Matches
in_fun_result.h
Go to the documentation of this file.
1#pragma once
2
4#include "di/util/move.h"
5
6namespace di::container {
7template<typename In, typename F>
8struct InFunResult {
9 [[no_unique_address]] In in;
10 [[no_unique_address]] F fun;
11
12 template<typename Jn, typename G>
14 constexpr operator InFunResult<Jn, G>() const& {
15 return { in, fun };
16 }
17
18 template<typename Jn, typename G>
20 constexpr operator InFunResult<Jn, G>() && {
21 return { util::move(in), util::move(fun) };
22 }
23};
24}
Definition operations.h:99
Definition sequence.h:12
Definition in_fun_result.h:8
In in
Definition in_fun_result.h:9
F fun
Definition in_fun_result.h:10