initial parser and compiler
This commit is contained in:
15
src/helper.hpp
Normal file
15
src/helper.hpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef APP_HELPER_H
|
||||
#define APP_HELPER_H
|
||||
|
||||
#include <array>
|
||||
#include <functional>
|
||||
#include <variant>
|
||||
|
||||
template<std::size_t N, typename T>
|
||||
constexpr std::array<T, N> array_fill(const T& value) {
|
||||
std::array<T, N> array{};
|
||||
array.fill(value);
|
||||
return array;
|
||||
}
|
||||
|
||||
#endif // APP_HELPER_H
|
||||
Reference in New Issue
Block a user