summaryrefslogtreecommitdiff
path: root/asl/meta.hpp
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2024-11-13 00:01:06 +0100
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2024-12-20 15:35:58 +0100
commit35a996490200126e72775398fa3d6daa0ec4f435 (patch)
tree065bc639ff3a2bd4e06e63b2a6c6255f509ddbb0 /asl/meta.hpp
parentac47be51b79f4c3e49656870e135453eefe759ea (diff)
Introduce byte, use span<byte> on io Writer
Diffstat (limited to 'asl/meta.hpp')
-rw-r--r--asl/meta.hpp5
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; };