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
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
combblas::DistEdgeList
Definition
DistEdgeList.h:82
combblas
Definition
CCGrid.h:4
combblas::disable_if
Definition
myenableif.h:9
combblas::disable_if::type
T type
Definition
myenableif.h:9
combblas::enable_if< true, T >::type
T type
Definition
myenableif.h:7
combblas::enable_if
Definition
myenableif.h:6
combblas::is_boolean
Definition
myenableif.h:12
combblas::is_boolean::value
static const bool value
Definition
myenableif.h:12
debian
libcombblas-dev
usr
include
CombBLAS
myenableif.h
Generated by
1.9.8