tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
apply.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_TUPLE_APPLY_HPP
4#define TETL_TUPLE_APPLY_HPP
5
12
13namespace etl {
14
15template <typename F, typename Tuple>
16constexpr auto apply(F&& f, Tuple&& t) -> decltype(auto)
17{
18 return [&]<etl::size_t... I>(etl::index_sequence<I...> /*i*/) -> decltype(auto) {
21}
22
23} // namespace etl
24
25#endif // TETL_TUPLE_APPLY_HPP
Definition adjacent_find.hpp:8
constexpr auto apply(F &&f, Tuple &&t) -> decltype(auto)
Definition apply.hpp:16
etl::make_integer_sequence< etl::size_t, Size > make_index_sequence
Definition index_sequence.hpp:15
constexpr auto get(complex< X > &z) noexcept -> X &
Definition complex.hpp:92
etl::integer_sequence< etl::size_t, Ints... > index_sequence
Definition index_sequence.hpp:12
constexpr auto invoke(F &&f, Args &&... args) -> invoke_result_t< F, Args... >
Definition invoke.hpp:45
constexpr auto forward(remove_reference_t< T > &param) noexcept -> T &&
Forwards lvalues as either lvalues or as rvalues, depending on T. When t is a forwarding reference (a...
Definition forward.hpp:18
TETL_BUILTIN_SIZET size_t
etl::size_t is the unsigned integer type of the result of the sizeof operator.
Definition size_t.hpp:14