11 #ifndef TLX_META_CALL_FOR_RANGE_HEADER 12 #define TLX_META_CALL_FOR_RANGE_HEADER 29 namespace meta_detail {
32 template <
size_t Index,
size_t Size,
typename Functor>
36 static void call(Functor&& f) {
39 std::forward<Functor>(f));
44 template <
size_t Index,
typename Functor>
48 static void call(Functor&& ) { }
54 template <
size_t Size,
typename Functor>
57 std::forward<Functor>(f));
61 template <
size_t Begin,
size_t End,
typename Functor>
64 std::forward<Functor>(f));
71 #endif // !TLX_META_CALL_FOR_RANGE_HEADER
Helper for call_foreach_with_index() to save the index as a compile-time index.