1
0

feat: parse wavefront as string lines

This commit is contained in:
2025-07-20 18:29:21 +03:00
parent 58a84ade0d
commit 753c21ef11
7 changed files with 195 additions and 464 deletions

View File

@@ -12,4 +12,14 @@ constexpr std::array<T, N> array_fill(const T& value) {
return array;
}
template<typename F, std::size_t... I>
constexpr void _static_for_impl(F &&f, std::index_sequence<I...>) {
(f(std::integral_constant<std::size_t, I>{}), ...);
}
template<std::size_t N, typename F>
constexpr void static_for(F &&f) {
_static_for_impl(std::forward<F>(f), std::make_index_sequence<N>{});
}
#endif // APP_HELPER_H