File indexing completed on 2025-03-13 09:06:31
0001
0002
0003
0004
0005 #ifndef CPPCORO_DETAIL_UNWRAP_REFERENCE_HPP_INCLUDED
0006 #define CPPCORO_DETAIL_UNWRAP_REFERENCE_HPP_INCLUDED
0007
0008 #include <functional>
0009
0010 namespace cppcoro
0011 {
0012 namespace detail
0013 {
0014 template<typename T>
0015 struct unwrap_reference
0016 {
0017 using type = T;
0018 };
0019
0020 template<typename T>
0021 struct unwrap_reference<std::reference_wrapper<T>>
0022 {
0023 using type = T;
0024 };
0025
0026 template<typename T>
0027 using unwrap_reference_t = typename unwrap_reference<T>::type;
0028 }
0029 }
0030
0031 #endif