aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCoroutines/Inputs/utility.h
blob: 43c6d27823bd47621d5a79fc1a5c57ae4d1aa292 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// This is a mock file for <utility>

namespace std {

template <typename T> struct remove_reference { using type = T; };
template <typename T> struct remove_reference<T &> { using type = T; };
template <typename T> struct remove_reference<T &&> { using type = T; };

template <typename T>
constexpr typename std::remove_reference<T>::type&& move(T &&t) noexcept {
  return static_cast<typename std::remove_reference<T>::type &&>(t);
}
}