mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-27 05:37:36 +00:00
Modernize code base
This commit is contained in:
12
native/jni/utils/include/cpputils.h
Normal file
12
native/jni/utils/include/cpputils.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user