12#ifndef O2_FRAMEWORK_STATICFOR_H_
13#define O2_FRAMEWORK_STATICFOR_H_
17namespace staticFor_details
19template <
int FirstIndex, std::size_t... IndexSequence,
typename F>
22 (
f(std::integral_constant<int, FirstIndex + IndexSequence>{}), ...);
26template <
int FirstIndex,
int LastIndex,
typename IndexSequence = std::make_index_sequence<(LastIndex - FirstIndex) + 1>,
typename F>
27static inline constexpr void static_for(F
const&
f)
29 staticFor_details::applyFunction<FirstIndex>(
f, IndexSequence{});
void applyFunction(F const &f, std::index_sequence< IndexSequence... >)
Defining PrimaryVertex explicitly as messageable.