From 5ab8a5088b729a9953b8dff1b2a985dc8fb2098b Mon Sep 17 00:00:00 2001 From: mzuenni Date: Mon, 27 Jun 2022 17:19:28 +0200 Subject: updated tcr --- other/compiletime.cpp | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 other/compiletime.cpp (limited to 'other/compiletime.cpp') 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 +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 -- cgit v1.2.3