From 6610b501b39eb9d567574ec9ced6c7dbd27bfd87 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 17 Apr 2021 10:56:24 -0500 Subject: [PATCH] [ox/std] Add is_pointer and is_pointer_v --- deps/ox/src/ox/std/typetraits.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/deps/ox/src/ox/std/typetraits.hpp b/deps/ox/src/ox/std/typetraits.hpp index 50eb58e5..080c875a 100644 --- a/deps/ox/src/ox/std/typetraits.hpp +++ b/deps/ox/src/ox/std/typetraits.hpp @@ -117,6 +117,19 @@ struct enable_if { }; +template +struct is_pointer { + static constexpr bool value = false; +}; + +template +struct is_pointer { + static constexpr bool value = true; +}; + +template +constexpr bool is_pointer_v = is_pointer::value; + template struct remove_pointer { using type = T;