Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:01:41

0001 
0002 //  (C) Copyright Steve Cleary, Beman Dawes, Howard Hinnant & John Maddock 2000.
0003 //  Use, modification and distribution are subject to the Boost Software License,
0004 //  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0005 //  http://www.boost.org/LICENSE_1_0.txt).
0006 //
0007 //  See http://www.boost.org/libs/type_traits for most recent version including documentation.
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 // forward declaration, needed by 'is_pod_array_helper' template below
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 // the following help compilers without partial specialization support:
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 } // namespace boost
0056 
0057 #undef BOOST_INTERNAL_IS_POD
0058 
0059 #endif // BOOST_TT_IS_POD_HPP_INCLUDED