diff --git a/util.hpp b/util.hpp index e074bba..4b2e85a 100644 --- a/util.hpp +++ b/util.hpp @@ -101,4 +101,10 @@ inline constexpr auto make_offset_index_sequence() return make_offset_integer_sequence(); } +template +void for_constexpr(Fn &&func, index_sequence) +{ + (func(type::integral_constant{}), ...); +} + } // namespace util