remove_rvalue_reference.hpp 756 B

1234567891011121314151617181920212223242526
  1. /*=============================================================================
  2. Copyright (c) 2014 Paul Fultz II
  3. remove_rvalue_reference.h
  4. Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. ==============================================================================*/
  7. #ifndef BOOST_HOF_GUARD_FUNCTION_REMOVE_RVALUE_REFERENCE_H
  8. #define BOOST_HOF_GUARD_FUNCTION_REMOVE_RVALUE_REFERENCE_H
  9. namespace boost { namespace hof { namespace detail {
  10. template<class T>
  11. struct remove_rvalue_reference
  12. {
  13. typedef T type;
  14. };
  15. template<class T>
  16. struct remove_rvalue_reference<T&&>
  17. : remove_rvalue_reference<T>
  18. {};
  19. }}} // namespace boost::hof
  20. #endif