mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-14 10:05:43 +01:00
20 lines
327 B
C++
20 lines
327 B
C++
|
|
// STRUCT TEMPLATE remove_reference
|
|
template<class _Ty>
|
|
struct remove_ref
|
|
{ // remove reference
|
|
using type = _Ty;
|
|
};
|
|
|
|
template<class _Ty>
|
|
struct remove_ref<_Ty&>
|
|
{ // remove reference
|
|
using type = _Ty;
|
|
};
|
|
//
|
|
//template<class _Ty>
|
|
// struct remove_ref<_Ty&&>
|
|
// { // remove rvalue reference
|
|
// using type = _Ty;
|
|
// };
|