#pragma once template struct StaticFor { template static inline constexpr void Apply(callback const& f) { if constexpr(first < last) { f(std::integral_constant{}); StaticFor::Apply(f); } } }; template struct StaticFor { template static inline constexpr void Apply(callback const& f) {} };