mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 10:33:33 +08:00
ParameterType<> template
This commit is contained in:
@@ -100,6 +100,15 @@ template <typename T> struct RemoveReference<T&> { typedef T Type; };
|
||||
template <typename T> struct RemoveReference<T&&> { typedef T Type; };
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Parameter types
|
||||
*/
|
||||
template <typename U> struct ParameterType { typedef const U& Type; };
|
||||
template <typename U> struct ParameterType<U&> { typedef U& Type; };
|
||||
#if UAVCAN_CPP_VERSION > UAVCAN_CPP03
|
||||
template <typename U> struct ParameterType<U&&> { typedef U&& Type; };
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Value types
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user