is_reference.hpp 938 B

123456789101112131415161718192021222324252627282930
  1. // (C) Copyright Dave Abrahams, Steve Cleary, Beman Dawes,
  2. // Howard Hinnant and John Maddock 2000, 2010.
  3. // (C) Copyright Mat Marcus, Jesse Jones and Adobe Systems Inc 2001
  4. // Use, modification and distribution are subject to the Boost Software License,
  5. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt).
  7. //
  8. // See http://www.boost.org/libs/type_traits for most recent version including documentation.
  9. #ifndef BOOST_TT_IS_REFERENCE_HPP_INCLUDED
  10. #define BOOST_TT_IS_REFERENCE_HPP_INCLUDED
  11. #include <boost/type_traits/is_lvalue_reference.hpp>
  12. #include <boost/type_traits/is_rvalue_reference.hpp>
  13. namespace boost {
  14. template <class T> struct is_reference
  15. : public
  16. integral_constant<
  17. bool,
  18. ::boost::is_lvalue_reference<T>::value || ::boost::is_rvalue_reference<T>::value>
  19. {};
  20. } // namespace boost
  21. #endif // BOOST_TT_IS_REFERENCE_HPP_INCLUDED