feat: parse wavefront as string lines
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user