]> git.lyx.org Git - lyx.git/blob - boost/boost/type_traits/is_union.hpp
Bug: 935
[lyx.git] / boost / boost / type_traits / is_union.hpp
1
2 // (C) Copyright Dave Abrahams, Steve Cleary, Beman Dawes, Howard
3 // Hinnant & John Maddock 2000.  Permission to copy, use, modify,
4 // sell and distribute this software is granted provided this
5 // copyright notice appears in all copies. This software is provided
6 // "as is" without express or implied warranty, and with no claim as
7 // to its suitability for any purpose.
8 //
9 // See http://www.boost.org for most recent version including documentation.
10
11 #ifndef BOOST_TT_IS_UNION_HPP_INCLUDED
12 #define BOOST_TT_IS_UNION_HPP_INCLUDED
13
14 #include "boost/type_traits/remove_cv.hpp"
15 #include "boost/type_traits/config.hpp"
16 #include "boost/type_traits/intrinsics.hpp"
17
18 // should be the last #include
19 #include "boost/type_traits/detail/bool_trait_def.hpp"
20
21 namespace boost {
22
23 namespace detail {
24 template <typename T> struct is_union_impl
25 {
26    typedef typename remove_cv<T>::type cvt;
27    BOOST_STATIC_CONSTANT(bool, value = BOOST_IS_UNION(cvt));
28 };
29 } // namespace detail
30
31 BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_union,T,::boost::detail::is_union_impl<T>::value)
32
33 } // namespace boost
34
35 #include "boost/type_traits/detail/bool_trait_undef.hpp"
36
37 #endif // BOOST_TT_IS_UNION_HPP_INCLUDED