diff options
Diffstat (limited to 'asl/meta.hpp')
-rw-r--r-- | asl/meta.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/asl/meta.hpp b/asl/meta.hpp index ab25a88..35e238b 100644 --- a/asl/meta.hpp +++ b/asl/meta.hpp @@ -160,6 +160,12 @@ template<typename T, int N> struct _is_array_helper<T[N]> : true_type {}; template<typename T> concept is_array = _is_array_helper<T>::value;
+template<typename T> struct _is_floating_point_helper : false_type {};
+template<> struct _is_floating_point_helper<float> : true_type {};
+template<> struct _is_floating_point_helper<double> : true_type {};
+
+template<typename T> concept is_floating_point = _is_floating_point_helper<un_cv_t<T>>::value;
+
struct niche {};
template<typename T>
|