tlx
call_foreach_with_index.hpp File Reference
#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 >
void call_foreach_with_index_impl (Functor &&f, Arg &&arg)
 helper for call_foreach_with_index: base case More...
 
template<size_t Index, typename Functor , typename Arg , typename... MoreArgs>
void call_foreach_with_index_impl (Functor &&f, Arg &&arg, MoreArgs &&...rest)
 helper for call_foreach_with_index: general recursive case More...
 
template<typename Functor , typename... Args>
void call_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...