COMBINATORIAL_BLAS  1.6
myenableif.h
Go to the documentation of this file.
1 #ifndef _MY_ENABLE_IF_
2 #define _MY_ENABLE_IF_
3 
4 namespace combblas {
5 // ABAB: A simple enable_if construct for now
6 template <bool, class T = void> struct enable_if {};
7 template <class T> struct enable_if<true, T> { typedef T type; };
8 
9 template <bool, class T = void> struct disable_if { typedef T type; };
10 template <class T> struct disable_if<true, T> {};
11 
12 template <typename T> struct is_boolean { static const bool value = false; };
13 template <> struct is_boolean<bool> { static const bool value = true; };
14 }
15 
16 #endif
17 
Definition: CCGrid.h:4