File indexing completed on 2025-01-30 10:01:42
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_TT_IS_UNION_HPP_INCLUDED
0012 #define BOOST_TT_IS_UNION_HPP_INCLUDED
0013
0014 #include <boost/type_traits/intrinsics.hpp>
0015 #include <boost/type_traits/integral_constant.hpp>
0016
0017 namespace boost {
0018
0019 #ifdef BOOST_IS_UNION
0020 template <class T> struct is_union : public integral_constant<bool, BOOST_IS_UNION(T)> {};
0021 #else
0022 template <class T> struct is_union : public integral_constant<bool, false> {};
0023 #endif
0024
0025 template <class T> struct is_union<T const> : public is_union<T>{};
0026 template <class T> struct is_union<T volatile const> : public is_union<T>{};
0027 template <class T> struct is_union<T volatile> : public is_union<T>{};
0028
0029 }
0030
0031 #endif