mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 14:03:33 +08:00
StaticIf<> renamed to much more appropriate and widely known name - Select<>
This commit is contained in:
@@ -53,16 +53,16 @@ struct EnableIfType { typedef R Type; };
|
||||
|
||||
|
||||
template <bool Condition, typename TrueType, typename FalseType>
|
||||
struct StaticIf;
|
||||
struct Select;
|
||||
|
||||
template <typename TrueType, typename FalseType>
|
||||
struct StaticIf<true, TrueType, FalseType>
|
||||
struct Select<true, TrueType, FalseType>
|
||||
{
|
||||
typedef TrueType Result;
|
||||
};
|
||||
|
||||
template <typename TrueType, typename FalseType>
|
||||
struct StaticIf<false, TrueType, FalseType>
|
||||
struct Select<false, TrueType, FalseType>
|
||||
{
|
||||
typedef FalseType Result;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user