CloverBootloader/rEFIt_UEFI/cpp_util/remove_ref.h

20 lines
327 B
C
Raw Normal View History

// 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;
// };