[ox/std] Add is_char_v
This commit is contained in:
parent
77ac48740a
commit
db3c2602fd
6
deps/ox/src/ox/std/typetraits.hpp
vendored
6
deps/ox/src/ox/std/typetraits.hpp
vendored
@ -71,9 +71,13 @@ template<> struct is_integral<unsigned long long>: true_type {};
|
||||
template<typename T>
|
||||
constexpr bool is_integral_v = is_integral<T>::value;
|
||||
|
||||
template<typename T> struct is_char: false_type {};
|
||||
template<> struct is_char<char> : true_type {};
|
||||
template<typename T>
|
||||
constexpr bool is_char_v = is_char<T>::value;
|
||||
|
||||
template<typename T> struct is_bool: false_type {};
|
||||
template<> struct is_bool<bool> : true_type {};
|
||||
|
||||
template<typename T>
|
||||
constexpr bool is_bool_v = is_bool<T>::value;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user