Back to home page

EIC code displayed by LXR

 
 

    


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

0001 
0002 //  (C) Copyright Dave Abrahams, Steve Cleary, Beman Dawes, Howard
0003 //  Hinnant & John Maddock 2000.  
0004 //  Use, modification and distribution are subject to the Boost Software License,
0005 //  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0006 //  http://www.boost.org/LICENSE_1_0.txt).
0007 //
0008 //  See http://www.boost.org/libs/type_traits for most recent version including documentation.
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 } // namespace boost
0030 
0031 #endif // BOOST_TT_IS_UNION_HPP_INCLUDED