From 0d9c7867aa363f1ee9e7e9b7f4c01eb3f740b1ee Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 30 Jul 2022 18:28:57 -0500 Subject: [PATCH] [ox/std] Add is_const_v --- deps/ox/src/ox/std/typetraits.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/deps/ox/src/ox/std/typetraits.hpp b/deps/ox/src/ox/std/typetraits.hpp index ee8ac99b..fba353a2 100644 --- a/deps/ox/src/ox/std/typetraits.hpp +++ b/deps/ox/src/ox/std/typetraits.hpp @@ -53,6 +53,15 @@ using false_type = integral_constant; using true_type = integral_constant; +// is_const ///////////////////////////////////////////////////////////////// + +template +constexpr bool is_const_v = false; + +template +constexpr bool is_const_v = true; + + // is_integral ///////////////////////////////////////////////////////////////// template struct is_integral: false_type {};