From ddd3b4c0934dd28f2d30d03c42611d79a5aa77b8 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 17 Oct 2024 01:35:42 +0300 Subject: [PATCH] BAN: Implement is_pod type traits --- BAN/include/BAN/Traits.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BAN/include/BAN/Traits.h b/BAN/include/BAN/Traits.h index 7954d009..6e22b6ad 100644 --- a/BAN/include/BAN/Traits.h +++ b/BAN/include/BAN/Traits.h @@ -90,6 +90,9 @@ namespace BAN template struct is_base_of { static constexpr bool value = __is_base_of(Base, Derived); }; template inline constexpr bool is_base_of_v = is_base_of::value; + template struct is_pod { static constexpr bool value = __is_pod(T); }; + template inline constexpr bool is_pod_v = is_pod::value; + namespace detail { template> struct is_signed { static constexpr bool value = T(-1) < T(0); };