MCPcopy Create free account
hub / github.com/codeinred/tuplet / tuple_for_each_impl

Function tuple_for_each_impl

test/test_alignment.cpp:10–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9template <typename Tuple, size_t... Indexes, typename Fn>
10constexpr decltype(auto) tuple_for_each_impl(
11 Tuple&& tuple,
12 std::integer_sequence<size_t, Indexes...>,
13 Fn&& fn) {
14 using tuplet::get;
15
16 (fn(get<Indexes>(std::forward<Tuple>(tuple))), ...);
17
18 return std::forward<Fn>(fn);
19}
20template <typename Tuple, typename Fn>
21constexpr decltype(auto) tuple_for_each(Tuple&& tuple, Fn&& fn) {
22 using indexes = std::make_index_sequence<

Callers 1

tuple_for_eachFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected