decay_copy.hpp 733 B

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright Oliver Kowalke 2014.
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. #ifndef BOOST_FIBER_DETAIL_DECAY_COPY_H
  6. #define BOOST_FIBER_DETAIL_DECAY_COPY_H
  7. #include <type_traits>
  8. #include <boost/config.hpp>
  9. #include <boost/fiber/detail/config.hpp>
  10. #ifdef BOOST_HAS_ABI_HEADERS
  11. # include BOOST_ABI_PREFIX
  12. #endif
  13. namespace boost {
  14. namespace fibers {
  15. namespace detail {
  16. template< typename T >
  17. typename std::decay< T >::type
  18. decay_copy( T && t) {
  19. return std::forward< T >( t);
  20. }
  21. }}}
  22. #ifdef BOOST_HAS_ABI_HEADERS
  23. #include BOOST_ABI_SUFFIX
  24. #endif
  25. #endif // BOOST_FIBER_DETAIL_DECAY_COPY_H