mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-13 06:38:48 +02:00
Differential Revision: https://phabricator.services.mozilla.com/D4210 --HG-- extra : moz-landing-system : lando
22 lines
410 B
C++
22 lines
410 B
C++
namespace std {
|
|
template <typename _Tp>
|
|
struct remove_reference {
|
|
typedef _Tp type;
|
|
};
|
|
|
|
template <typename _Tp>
|
|
constexpr typename std::remove_reference<_Tp>::type &&move(_Tp &&__t) {
|
|
return static_cast<typename std::remove_reference<_Tp>::type &&>(__t);
|
|
}
|
|
} // namespace std
|
|
|
|
struct TriviallyCopyable {
|
|
int i;
|
|
};
|
|
|
|
void f(TriviallyCopyable) {}
|
|
|
|
void g() {
|
|
TriviallyCopyable obj;
|
|
f(std::move(obj));
|
|
}
|