openMSX
Main Page
Namespaces
Classes
Files
File List
File Members
utils
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
Generated on Mon May 20 2013 12:17:00 for openMSX by
1.8.1.2