openMSX
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
openmsx::F
Definition:
CPUCore.cc:222
if_
Definition:
type_traits.hh:7
if_c
Definition:
type_traits.hh:5
Generated on Sat Sep 22 2018 20:45:11 for openMSX by
1.8.13