[ox/std] Add is_signed
This commit is contained in:
parent
e4aab88831
commit
10b3757558
2
deps/ox/src/ox/std/typetraits.hpp
vendored
2
deps/ox/src/ox/std/typetraits.hpp
vendored
@ -51,6 +51,8 @@ template<> struct is_integral<uint32_t>: ox::true_type {};
|
||||
template<> struct is_integral<int64_t> : ox::true_type {};
|
||||
template<> struct is_integral<uint64_t>: ox::true_type {};
|
||||
|
||||
template<typename T>
|
||||
constexpr bool is_signed = ox::integral_constant<bool, T(-1) < T(0)>::value;
|
||||
|
||||
// enable_if ///////////////////////////////////////////////////////////////////
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user