From 5e318d1a4229427c2adb2a1414ad1824898f111c Mon Sep 17 00:00:00 2001 From: BlackMark Date: Tue, 7 Apr 2020 05:01:41 +0200 Subject: [PATCH] Add floating point type detection --- type.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/type.hpp b/type.hpp index 4e76b2f..cff5df6 100644 --- a/type.hpp +++ b/type.hpp @@ -36,6 +36,13 @@ template <> struct is_integral : true_type {}; template static constexpr auto is_integral_v = is_integral::value; +template struct is_floating_point : false_type {}; +template <> struct is_floating_point : true_type {}; +template <> struct is_floating_point : true_type {}; +template <> struct is_floating_point : true_type {}; + +template static constexpr auto is_floating_point_v = is_floating_point::value; + template struct is_same : false_type {}; template struct is_same : true_type {};