ViennaCL - The Vienna Computing Library  1.5.2
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
Simple enable-if variant that uses the SFINAE pattern.
Definition: enable_if.hpp:29
Main namespace in ViennaCL. Holds all the basic types such as vector, matrix, etc. and defines operations upon them.
Definition: cpu_ram.hpp:29
T type
Definition: enable_if.hpp:31