CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

testIsSame.cc File Reference
#include "CLHEP/Utility/type_traits.h"
#include <cassert>

Go to the source code of this file.

Macros

#define claim_same(From, To)
 
#define has_same_type(From, To)
 
#define has_different_type(From, To)
 

Typedefs

typedef int my_int
 

Functions

int main ()
 

Macro Definition Documentation

◆ claim_same

#define claim_same ( From,
To )

◆ has_different_type

#define has_different_type ( From,
To )
Value:
assert(!claim_same(From,To))
#define claim_same(From, To)
Definition testIsSame.cc:28

Definition at line 30 of file testIsSame.cc.

Referenced by main().

◆ has_same_type

#define has_same_type ( From,
To )
Value:
assert(claim_same(From,To))

Definition at line 29 of file testIsSame.cc.

Referenced by main().

Typedef Documentation

◆ my_int

typedef int my_int

Definition at line 25 of file testIsSame.cc.

Function Documentation

◆ main()

int main ( )

Definition at line 33 of file testIsSame.cc.

References has_different_type, and has_same_type.