123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #ifndef BOOST_HANA_DETAIL_DECAY_HPP
- #define BOOST_HANA_DETAIL_DECAY_HPP
- #include <boost/hana/config.hpp>
- #include <type_traits>
- namespace boost { namespace hana { namespace detail {
-
-
-
-
-
-
-
-
-
-
-
-
- template <typename T, typename U = typename std::remove_reference<T>::type>
- struct decay {
- using type = typename std::remove_cv<U>::type;
- };
- template <typename T, typename U>
- struct decay<T, U[]> { using type = U*; };
- template <typename T, typename U, std::size_t N>
- struct decay<T, U[N]> { using type = U*; };
- template <typename T, typename R, typename ...A>
- struct decay<T, R(A...)> { using type = R(*)(A...); };
- template <typename T, typename R, typename ...A>
- struct decay<T, R(A..., ...)> { using type = R(*)(A..., ...); };
- } }}
- #endif
|