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.
8 // See http://www.boost.org for most recent version including documentation.
10 #ifndef BOOST_TT_IS_COMPOUND_HPP_INCLUDED
11 #define BOOST_TT_IS_COMPOUND_HPP_INCLUDED
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"
23 // should be the last #include
24 #include "boost/type_traits/detail/bool_trait_def.hpp"
31 struct is_compound_impl
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
47 BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_compound,T,::boost::detail::is_compound_impl<T>::value)
51 #include "boost/type_traits/detail/bool_trait_undef.hpp"
53 #endif // BOOST_TT_IS_COMPOUND_HPP_INCLUDED