[ox/std] Add is_const_v
This commit is contained in:
parent
ed025bfa31
commit
0d9c7867aa
9
deps/ox/src/ox/std/typetraits.hpp
vendored
9
deps/ox/src/ox/std/typetraits.hpp
vendored
@ -53,6 +53,15 @@ using false_type = integral_constant<bool, false>;
|
||||
using true_type = integral_constant<bool, true>;
|
||||
|
||||
|
||||
// is_const /////////////////////////////////////////////////////////////////
|
||||
|
||||
template<typename T>
|
||||
constexpr bool is_const_v = false;
|
||||
|
||||
template<typename T>
|
||||
constexpr bool is_const_v<const T> = true;
|
||||
|
||||
|
||||
// is_integral /////////////////////////////////////////////////////////////////
|
||||
|
||||
template<typename T> struct is_integral: false_type {};
|
||||
|
Loading…
Reference in New Issue
Block a user