tlx
vmap_foreach_with_index.hpp File Reference
#include <tuple>
#include <utility>
#include <tlx/meta/static_index.hpp>

Go to the source code of this file.

Namespaces

 tlx
 
 tlx::meta_detail
 

Functions

template<size_t Index, typename Functor , typename Arg >
auto vmap_foreach_with_index_impl (Functor &&f, Arg &&arg)
 helper for vmap_foreach_with_index: base case More...
 
template<size_t Index, typename Functor , typename Arg , typename... MoreArgs>
auto vmap_foreach_with_index_impl (Functor &&f, Arg &&arg, MoreArgs &&...rest)
 helper for vmap_foreach_with_index: general recursive case More...
 
template<typename Functor , typename... Args>
auto vmap_foreach_with_index (Functor &&f, Args &&...args)
 Call a generic functor (like a generic lambda) for each variadic template argument together with its zero-based index. More...