diff --git a/tstl/include/type_traits.hpp b/tstl/include/type_traits.hpp index 026aabe5..8d67e8d9 100644 --- a/tstl/include/type_traits.hpp +++ b/tstl/include/type_traits.hpp @@ -158,6 +158,24 @@ struct has_trivial_assign { static constexpr const bool value = __has_trivial_assign(T); }; +/* is_pointer */ + +/*! + * \brief Traits to test if given type is a pointer type + */ +template +struct is_pointer { + static constexpr const bool value = false; +}; + +/*! + * \copdoc is_pointer + */ +template +struct is_pointer{ + static constexpr const bool value = true; +}; + /* is_reference */ template