StaticIf<> renamed to much more appropriate and widely known name - Select<>

This commit is contained in:
Pavel Kirienko
2014-03-09 21:50:58 +04:00
parent ce618f6436
commit 30aa1bdecc
4 changed files with 22 additions and 25 deletions
@@ -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;
};