File indexing completed on 2025-01-30 10:01:41
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef BOOST_TT_IS_POD_HPP_INCLUDED
0010 #define BOOST_TT_IS_POD_HPP_INCLUDED
0011
0012 #include <cstddef> // size_t
0013 #include <boost/type_traits/detail/config.hpp>
0014 #include <boost/type_traits/is_void.hpp>
0015 #include <boost/type_traits/is_scalar.hpp>
0016 #include <boost/type_traits/intrinsics.hpp>
0017
0018 #ifdef __SUNPRO_CC
0019 #include <boost/type_traits/is_function.hpp>
0020 #endif
0021
0022 #include <cstddef>
0023
0024 #ifndef BOOST_IS_POD
0025 #define BOOST_INTERNAL_IS_POD(T) false
0026 #else
0027 #define BOOST_INTERNAL_IS_POD(T) BOOST_IS_POD(T)
0028 #endif
0029
0030 namespace boost {
0031
0032
0033 template< typename T > struct is_POD;
0034
0035 template <typename T> struct is_pod
0036 : public integral_constant<bool, ::boost::is_scalar<T>::value || ::boost::is_void<T>::value || BOOST_INTERNAL_IS_POD(T)>
0037 {};
0038
0039 #if !defined(BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS)
0040 template <typename T, std::size_t sz> struct is_pod<T[sz]> : public is_pod<T>{};
0041 #endif
0042
0043
0044
0045 template<> struct is_pod<void> : public true_type{};
0046
0047 #ifndef BOOST_NO_CV_VOID_SPECIALIZATIONS
0048 template<> struct is_pod<void const> : public true_type{};
0049 template<> struct is_pod<void const volatile> : public true_type{};
0050 template<> struct is_pod<void volatile> : public true_type{};
0051 #endif
0052
0053 template<class T> struct is_POD : public is_pod<T>{};
0054
0055 }
0056
0057 #undef BOOST_INTERNAL_IS_POD
0058
0059 #endif