mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-11 18:54:30 +00:00
12 lines
401 B
C++
12 lines
401 B
C++
#pragma once
|
|
|
|
namespace utils {
|
|
template< class T > struct remove_reference {typedef T type;};
|
|
template< class T > struct remove_reference<T&> {typedef T type;};
|
|
template< class T > struct remove_reference<T&&> {typedef T type;};
|
|
|
|
template< class T >
|
|
constexpr typename remove_reference<T>::type&& move( T&& t ) noexcept {
|
|
return static_cast<typename remove_reference<T>::type&&>(t);
|
|
}
|
|
} |