diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-05-14 00:23:11 +0200 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-05-14 00:41:51 +0200 |
commit | f7a2699ac0cbb2824862439a72f23013436484de (patch) | |
tree | 8e8c63332b8b4ae188a3f41391cadf16145bbed5 /asl/base/meta.hpp | |
parent | 088e03708afe4145a1903f0b20c53cab1899ad50 (diff) |
Add and use copy_const_t
Diffstat (limited to 'asl/base/meta.hpp')
-rw-r--r-- | asl/base/meta.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/asl/base/meta.hpp b/asl/base/meta.hpp index 3675df3..e050e69 100644 --- a/asl/base/meta.hpp +++ b/asl/base/meta.hpp @@ -146,6 +146,8 @@ struct _copy_const_helper<From, To, true> { using type = const To; }; template<typename From, typename To> using copy_cref_t = _copy_ref_helper<From, typename _copy_const_helper<From, un_cvref_t<To>>::type>::type; +template<typename From, typename To> using copy_const_t = _copy_const_helper<From, un_cvref_t<To>>::type; + template<typename T> struct _is_ptr_helper : false_type {}; template<typename T> struct _is_ptr_helper<T*> : true_type {}; |