29template <
typename _Ty>
30inline void Set(_Ty& old, _Ty flag)
32 static_assert(std::is_arithmetic<_Ty>::value,
"_Ty must be an arithmetic type");
36template <
typename _Ty>
37inline void Unset(_Ty& old, _Ty flag)
39 static_assert(std::is_arithmetic<_Ty>::value,
"_Ty must be an arithmetic type");
43template <
typename _Ty>
44inline bool Has(_Ty old, _Ty flag)
46 static_assert(std::is_arithmetic<_Ty>::value,
"_Ty must be an arithmetic type");
47 return !!(old & flag);