ViennaCL - The Vienna Computing Library  1.7.0
Free open-source GPU-accelerated linear algebra and solver library.
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-2015, 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 manual)
17 
18  License: MIT (X11), see file LICENSE in the base directory
19 ============================================================================= */
20 
25 namespace viennacl
26 {
27 
29 template<bool b, class T = void>
30 struct enable_if
31 {
32  typedef T type;
33 };
34 
36 template<class T>
37 struct enable_if<false, T> {};
40 } //namespace viennacl
41 
42 
43 #endif
Simple enable-if variant that uses the SFINAE pattern.
Definition: enable_if.hpp:30
Main namespace in ViennaCL. Holds all the basic types such as vector, matrix, etc. and defines operations upon them.
Definition: cpu_ram.hpp:34