is_rvalue_reference.hpp 981 B

1234567891011121314151617181920212223242526272829
  1. // (C) Copyright John Maddock 2010.
  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_RVALUE_REFERENCE_HPP_INCLUDED
  8. #define BOOST_TT_IS_RVALUE_REFERENCE_HPP_INCLUDED
  9. #include <boost/config.hpp>
  10. #include <boost/type_traits/integral_constant.hpp>
  11. namespace boost {
  12. template <class T> struct is_rvalue_reference : public false_type {};
  13. #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
  14. template <class T> struct is_rvalue_reference<T&&> : public true_type {};
  15. #endif
  16. } // namespace boost
  17. #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && defined(BOOST_MSVC) && BOOST_WORKAROUND(BOOST_MSVC, <= 1700)
  18. #include <boost/type_traits/detail/is_rvalue_reference_msvc10_fix.hpp>
  19. #endif
  20. #endif // BOOST_TT_IS_REFERENCE_HPP_INCLUDED