BAN: Implement is_pod type traits

This commit is contained in:
Bananymous 2024-10-17 01:35:42 +03:00
parent 3a6fc4c197
commit ddd3b4c093
1 changed files with 3 additions and 0 deletions

View File

@ -90,6 +90,9 @@ namespace BAN
template<typename Base, typename Derived> struct is_base_of { static constexpr bool value = __is_base_of(Base, Derived); };
template<typename Base, typename Derived> inline constexpr bool is_base_of_v = is_base_of<Base, Derived>::value;
template<typename T> struct is_pod { static constexpr bool value = __is_pod(T); };
template<typename T> inline constexpr bool is_pod_v = is_pod<T>::value;
namespace detail
{
template<typename T, bool = is_arithmetic_v<T>> struct is_signed { static constexpr bool value = T(-1) < T(0); };