Member value tells you whether two types are the same. More...
#include <classTraits.h>
Public Types | |
enum | { value } |
Static Public Member Functions | |
static int | is_same_type_func (...) |
template<class V > | |
static char | is_same_type_func (V &, V &) |
Static Public Attributes | |
static T | t |
static U | u |
Member value tells you whether two types are the same.
You use it like this:
typename EvalTypeIf< IsSameType<A,B>::value, OneType, OtherType>::type variable; // // Variable is of type OneType, or OtherType depending on whether type A and B // are the same type.
Or maybe like this:
if( IsSameType<A,B>::value ) { // A and B are the same type ... }
Definition at line 182 of file classTraits.h.
anonymous enum |
Definition at line 223 of file classTraits.h.
static int is_same_type_func | ( | ... | ) | [static] |
static char is_same_type_func | ( | V & | , | |
V & | ||||
) | [static] |
T t [static] |
Definition at line 217 of file classTraits.h.
U u [static] |
Definition at line 218 of file classTraits.h.