ViennaCL - The Vienna Computing Library
1.5.2
Main Page
Namespaces
Data Structures
Files
File List
Globals
tmp
buildd
viennacl-1.5.2
viennacl
meta
enable_if.hpp
Go to the documentation of this file.
1
#ifndef VIENNACL_META_ENABLE_IF_HPP_
2
#define VIENNACL_META_ENABLE_IF_HPP_
3
4
/* =========================================================================
5
Copyright (c) 2010-2014, Institute for Microelectronics,
6
Institute for Analysis and Scientific Computing,
7
TU Wien.
8
Portions of this software are copyright by UChicago Argonne, LLC.
9
10
-----------------
11
ViennaCL - The Vienna Computing Library
12
-----------------
13
14
Project Head: Karl Rupp rupp@iue.tuwien.ac.at
15
16
(A list of authors and contributors can be found in the PDF manual)
17
18
License: MIT (X11), see file LICENSE in the base directory
19
============================================================================= */
20
25
namespace
viennacl
26
{
28
template
<
bool
b,
class
T =
void
>
29
struct
enable_if
30
{
31
typedef
T
type
;
32
};
33
35
template
<
class
T>
36
struct
enable_if
<false, T> {};
39
}
//namespace viennacl
40
41
42
#endif
viennacl::enable_if
Simple enable-if variant that uses the SFINAE pattern.
Definition:
enable_if.hpp:29
viennacl::enable_if::type
T type
Definition:
enable_if.hpp:31
Generated on Sat May 17 2014 08:33:01 for ViennaCL - The Vienna Computing Library by
1.8.6