diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-10-08 23:33:21 +0200 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-12-20 15:35:58 +0100 |
commit | 0e7999f2d147b026aaee6693bdd2be2cb4a2519e (patch) | |
tree | b5bc7e49f732009f5d5f26ec625f4fa96935d40a /asl/meta.hpp | |
parent | 85462f25d6335bcca9423b6fc1e624d9a76a2375 (diff) |
Start work on formatting
Diffstat (limited to 'asl/meta.hpp')
-rw-r--r-- | asl/meta.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/asl/meta.hpp b/asl/meta.hpp index 931310f..7372c3f 100644 --- a/asl/meta.hpp +++ b/asl/meta.hpp @@ -1,11 +1,15 @@ #pragma once
+#include "asl/integers.hpp"
+
namespace asl {
struct empty {};
template<typename T> struct id { using type = T; };
+template<typename... Args> static constexpr int64_t types_count = sizeof...(Args);
+
template<typename T, T kValue> struct integral_constant { static constexpr T value = kValue; };
template<bool B> using bool_constant = integral_constant<bool, B>;
|