diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-11-13 00:01:06 +0100 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-12-20 15:35:58 +0100 |
commit | 35a996490200126e72775398fa3d6daa0ec4f435 (patch) | |
tree | 065bc639ff3a2bd4e06e63b2a6c6255f509ddbb0 /asl/meta.hpp | |
parent | ac47be51b79f4c3e49656870e135453eefe759ea (diff) |
Introduce byte, use span<byte> on io Writer
Diffstat (limited to 'asl/meta.hpp')
-rw-r--r-- | asl/meta.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/asl/meta.hpp b/asl/meta.hpp index 1c058c4..e64b4f2 100644 --- a/asl/meta.hpp +++ b/asl/meta.hpp @@ -82,6 +82,11 @@ template<typename T> struct _un_const_helper<const T> { using type = T; }; template<typename T> using un_const_t = _un_const_helper<T>::type;
+template<typename T> struct _is_const_helper : false_type {};
+template<typename T> struct _is_const_helper<const T> : true_type {};
+
+template<typename T> concept is_const = _is_const_helper<T>::value;
+
template<typename T> struct _un_volatile_helper { using type = T; };
template<typename T> struct _un_volatile_helper<volatile T> { using type = T; };
|