From c491351fd00a2c6d246c697647ebf551a8fd1a79 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Sat, 10 May 2025 14:58:16 +0000 Subject: [PATCH] feat(kernel/std): :sparkles: add is_floating_point type trait --- Kernel/include_std/type_traits | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Kernel/include_std/type_traits b/Kernel/include_std/type_traits index f31b62a1..850a88fe 100644 --- a/Kernel/include_std/type_traits +++ b/Kernel/include_std/type_traits @@ -721,4 +721,12 @@ namespace std template constexpr bool is_pointer_v = is_pointer::value; + + template + struct is_floating_point : std::integral_constant::type>::value || std::is_same::type>::value || std::is_same::type>::value> + { + }; + + template + constexpr bool is_floating_point_v = is_floating_point::value; }