clang/test/CodeGenCoroutines/Inputs/utility.h
raw| 1 | // This is a mock file for <utility> |
| 2 | |
| 3 | namespace std { |
| 4 | |
| 5 | template <typename T> struct remove_reference { using type = T; }; |
| 6 | template <typename T> struct remove_reference<T &> { using type = T; }; |
| 7 | template <typename T> struct remove_reference<T &&> { using type = T; }; |
| 8 | |
| 9 | template <typename T> |
| 10 | constexpr typename std::remove_reference<T>::type&& move(T &&t) noexcept { |
| 11 | return static_cast<typename std::remove_reference<T>::type &&>(t); |
| 12 | } |
| 13 | } |