diff options
Diffstat (limited to 'other/compiletime.cpp')
| -rw-r--r-- | other/compiletime.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/other/compiletime.cpp b/other/compiletime.cpp new file mode 100644 index 0000000..7734806 --- /dev/null +++ b/other/compiletime.cpp @@ -0,0 +1,7 @@ +template<int N> +struct Table { + int data[N]; + constexpr Table() : data {} { + for (int i = 0; i < N; i++) data[i] = i; +}}; +constexpr Table<100000> precalculated;
\ No newline at end of file |
