mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-11 14:28:08 +01:00
d54fc63747
application, for unit tests.
32 lines
414 B
C++
32 lines
414 B
C++
/*
|
|
*
|
|
*/
|
|
|
|
#ifndef __remove_ref_h__
|
|
#define __remove_ref_h__
|
|
|
|
|
|
|
|
// STRUCT TEMPLATE remove_reference
|
|
template<class _Ty>
|
|
struct _typeofam_remove_ref
|
|
{ // remove reference
|
|
using type = _Ty;
|
|
};
|
|
|
|
template<class _Ty>
|
|
struct _typeofam_remove_ref<_Ty&>
|
|
{ // remove reference
|
|
using type = _Ty;
|
|
};
|
|
//
|
|
//template<class _Ty>
|
|
// struct remove_ref<_Ty&&>
|
|
// { // remove rvalue reference
|
|
// using type = _Ty;
|
|
// };
|
|
|
|
|
|
|
|
#endif
|