11#ifndef TLX_META_VMAP_FOR_RANGE_HEADER
12#define TLX_META_VMAP_FOR_RANGE_HEADER
34template <
size_t Index,
size_t Size,
typename Functor>
38 static auto call(Functor&& f) {
41 return std::tuple_cat(
42 std::make_tuple(std::move(x)),
44 std::forward<Functor>(f)));
49template <
size_t Index,
typename Functor>
53 static auto call(Functor&& ) {
54 return std::tuple<>();
61template <
size_t Size,
typename Functor>
64 std::forward<Functor>(f));
68template <
size_t Begin,
size_t End,
typename Functor>
71 std::forward<Functor>(f));
Helper for call_foreach_with_index() to save the index as a compile-time index.