File indexing completed on 2025-12-15 10:09:49
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021 #ifndef BOOST_TT_IS_POINTER_HPP_INCLUDED
0022 #define BOOST_TT_IS_POINTER_HPP_INCLUDED
0023
0024 #include <boost/type_traits/integral_constant.hpp>
0025
0026 namespace boost {
0027
0028 #if defined( BOOST_CODEGEARC )
0029 template <class T> struct is_pointer : public integral_constant<bool, __is_pointer(T)>{};
0030 #else
0031 template <class T> struct is_pointer : public false_type{};
0032 template <class T> struct is_pointer<T*> : public true_type{};
0033 template <class T> struct is_pointer<T*const> : public true_type{};
0034 template <class T> struct is_pointer<T*const volatile> : public true_type{};
0035 template <class T> struct is_pointer<T*volatile> : public true_type{};
0036
0037 #ifdef BOOST_MSVC
0038 template <class T> struct is_pointer<T const> : public is_pointer<T>{};
0039 template <class T> struct is_pointer<T const volatile> : public is_pointer<T>{};
0040 template <class T> struct is_pointer<T volatile> : public is_pointer<T>{};
0041 #endif
0042
0043 #endif
0044
0045 }
0046
0047 #endif