]> git.lyx.org Git - lyx.git/blob - boost/boost/type_traits/is_compound.hpp
update boost to version 1.29.0
[lyx.git] / boost / boost / type_traits / is_compound.hpp
1
2 // (C) Copyright Steve Cleary, Beman Dawes, Howard Hinnant & John Maddock 2000.
3 // Permission to copy, use, modify, sell and distribute this software is 
4 // granted provided this copyright notice appears in all copies. This software 
5 // is provided "as is" without express or implied warranty, and with no claim 
6 // as to its suitability for any purpose.
7 //
8 // See http://www.boost.org for most recent version including documentation.
9
10 #ifndef BOOST_TT_IS_COMPOUND_HPP_INCLUDED
11 #define BOOST_TT_IS_COMPOUND_HPP_INCLUDED
12
13 #include "boost/type_traits/is_array.hpp"
14 #include "boost/type_traits/is_pointer.hpp"
15 #include "boost/type_traits/is_reference.hpp"
16 #include "boost/type_traits/is_class.hpp"
17 #include "boost/type_traits/is_union.hpp"
18 #include "boost/type_traits/is_enum.hpp"
19 #include "boost/type_traits/is_member_pointer.hpp"
20 #include "boost/type_traits/detail/ice_or.hpp"
21 #include "boost/config.hpp"
22
23 // should be the last #include
24 #include "boost/type_traits/detail/bool_trait_def.hpp"
25
26 namespace boost {
27
28 namespace detail {
29
30 template <typename T>
31 struct is_compound_impl
32 {
33    BOOST_STATIC_CONSTANT(bool, value =
34       (::boost::type_traits::ice_or<
35          ::boost::is_array<T>::value,
36          ::boost::is_pointer<T>::value,
37          ::boost::is_reference<T>::value,
38          ::boost::is_class<T>::value,
39          ::boost::is_union<T>::value,
40          ::boost::is_enum<T>::value,
41          ::boost::is_member_pointer<T>::value
42       >::value));
43 };
44
45 } // namespace detail
46
47 BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_compound,T,::boost::detail::is_compound_impl<T>::value)
48
49 } // namespace boost
50
51 #include "boost/type_traits/detail/bool_trait_undef.hpp"
52
53 #endif // BOOST_TT_IS_COMPOUND_HPP_INCLUDED