#pragma once #include #include namespace util { template auto for_constexpr(Fn&& func, std::index_sequence) { if constexpr(std::is_void_v>>) { (func(std::integral_constant{}), ...); } else { if((func(std::integral_constant{}) && ...)) return true; return false; } } } // namespace util