tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
ranges_in_fun_result.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_ALGORITHM_RANGES_IN_FUN_RESULT_HPP
4#define TETL_ALGORITHM_RANGES_IN_FUN_RESULT_HPP
5
6#include <etl/_config/all.hpp>
7
10
11namespace etl::ranges {
12
14template <typename I, typename F>
16 template <typename I2, typename F2>
18 constexpr operator in_fun_result<I2, F2>() const&
19 {
20 return {in, fun};
21 }
22
23 template <typename I2, typename F2>
25 constexpr operator in_fun_result<I2, F2>() &&
26 {
27 return {etl::move(in), etl::move(fun)};
28 }
29
32};
33
34} // namespace etl::ranges
35
36#endif // TETL_ALGORITHM_RANGES_IN_FUN_RESULT_HPP
#define TETL_NO_UNIQUE_ADDRESS
Definition attributes.hpp:41
The concept convertible_to<From, To> specifies that an expression of the same type and value category...
Definition convertible_to.hpp:18
constexpr auto move(InputIt first, InputIt last, OutputIt destination) -> OutputIt
Moves the elements in the range [first, last), to another range beginning at destination,...
Definition move.hpp:26
Definition ranges_in_fun_result.hpp:11
Definition ranges_in_fun_result.hpp:15
TETL_NO_UNIQUE_ADDRESS F fun
Definition ranges_in_fun_result.hpp:31
TETL_NO_UNIQUE_ADDRESS I in
Definition ranges_in_fun_result.hpp:30