1 //===-- jitcs_typefuncs.h ---------------------------------------*- C++ -*-===//
4 //===----------------------------------------------------------------------===//
6 #ifndef _JITCS_TYPEFUNCS_H_
7 #define _JITCS_TYPEFUNCS_H_
9 #include "jitcs_base.h"
13 template <typename T
, bool C
> struct ConstType
;
14 template <typename T
> struct ConstType
<T
, false> { typedef T Type
; };
15 template <typename T
> struct ConstType
<T
, true> { typedef const T Type
; };
17 } // end jitcs namespace
19 // _JITCS_TYPEFUNCS_H_