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