openMSX
type_traits.hh
Go to the documentation of this file.
1 #ifndef TYPE_TRAITS_HH
2 #define TYPE_TRAITS_HH
3 
4 // if_<C, T, F>
5 template<bool C, class T, class F> struct if_c : F {};
6 template< class T, class F> struct if_c<true, T, F> : T {};
7 template<typename C, typename T, typename F> struct if_ : if_c<C::value, T, F> {};
8 
9 #endif