/Src/Dependencies/Boost/boost/type_traits/is_object.hpp

http://hadesmem.googlecode.com/ · C++ Header · 53 lines · 34 code · 12 blank · 7 comment · 0 complexity · f5238806b19890afac6e6e072041b3df MD5 · raw file

  1. // (C) Copyright Steve Cleary, Beman Dawes, Howard Hinnant & John Maddock 2000.
  2. // Use, modification and distribution are subject to the Boost Software License,
  3. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt).
  5. //
  6. // See http://www.boost.org/libs/type_traits for most recent version including documentation.
  7. #ifndef BOOST_TT_IS_OBJECT_HPP_INCLUDED
  8. #define BOOST_TT_IS_OBJECT_HPP_INCLUDED
  9. #include <boost/type_traits/is_reference.hpp>
  10. #include <boost/type_traits/is_void.hpp>
  11. #include <boost/type_traits/is_function.hpp>
  12. #include <boost/type_traits/detail/ice_and.hpp>
  13. #include <boost/type_traits/detail/ice_not.hpp>
  14. #include <boost/config.hpp>
  15. // should be the last #include
  16. #include <boost/type_traits/detail/bool_trait_def.hpp>
  17. namespace boost {
  18. namespace detail {
  19. template <typename T>
  20. struct is_object_impl
  21. {
  22. #ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
  23. BOOST_STATIC_CONSTANT(bool, value =
  24. (::boost::type_traits::ice_and<
  25. ::boost::type_traits::ice_not< ::boost::is_reference<T>::value>::value,
  26. ::boost::type_traits::ice_not< ::boost::is_void<T>::value>::value,
  27. ::boost::type_traits::ice_not< ::boost::is_function<T>::value>::value
  28. >::value));
  29. #else
  30. BOOST_STATIC_CONSTANT(bool, value =
  31. (::boost::type_traits::ice_and<
  32. ::boost::type_traits::ice_not< ::boost::is_reference<T>::value>::value,
  33. ::boost::type_traits::ice_not< ::boost::is_void<T>::value>::value
  34. >::value));
  35. #endif
  36. };
  37. } // namespace detail
  38. BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_object,T,::boost::detail::is_object_impl<T>::value)
  39. } // namespace boost
  40. #include <boost/type_traits/detail/bool_trait_undef.hpp>
  41. #endif // BOOST_TT_IS_OBJECT_HPP_INCLUDED