isSameType< T, U > Struct Template Reference

Member value tells you whether two types are the same. More...

#include <classTraits.h>

List of all members.

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

Detailed Description

template<class T, class U>
struct cxxtls::isSameType< T, 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
See also:

Definition at line 182 of file classTraits.h.

Member Enumeration Documentation

anonymous enum

Definition at line 223 of file classTraits.h.

Member Function Documentation

static int is_same_type_func (   ...  )  [static]
static char is_same_type_func ( V &  ,
V &   
) [static]

Member Data Documentation

T t [static]

Definition at line 217 of file classTraits.h.

U u [static]

Definition at line 218 of file classTraits.h.

The documentation for this struct was generated from the following file:
Generated on Wed Feb 29 22:55:57 2012 for CXXUtilities by  doxygen 1.6.3