ViennaSHE
1.3.0
Free open-source semiconductor device simulator using spherical harmonics expansions techniques.
enable_if.hpp
Go to the documentation of this file.
1
#ifndef VIENNASHE_UTIL_ENABLE_IF_HPP
2
#define VIENNASHE_UTIL_ENABLE_IF_HPP
3
4
/* ============================================================================
5
Copyright (c) 2011-2022, Institute for Microelectronics,
6
Institute for Analysis and Scientific Computing,
7
TU Wien.
8
9
-----------------
10
ViennaSHE - The Vienna Spherical Harmonics Expansion Boltzmann Solver
11
-----------------
12
13
http://viennashe.sourceforge.net/
14
15
License: MIT (X11), see file LICENSE in the base directory
16
=============================================================================== */
17
22
namespace
viennashe
23
{
25
template
<
bool
b,
class
T =
void
>
26
struct
enable_if
27
{
28
typedef
T
type
;
29
};
30
31
template
<
class
T>
32
struct
enable_if
<false, T> {};
33
34
}
//namespace viennashe
35
36
37
#endif
viennashe
The main ViennaSHE namespace. All functionality resides inside this namespace.
Definition:
accessors.hpp:40
viennashe::enable_if
Simple enable-if variant that uses the SFINAE pattern.
Definition:
enable_if.hpp:27
viennashe::enable_if::type
T type
Definition:
enable_if.hpp:28
viennashe
util
enable_if.hpp
Generated on Wed May 4 2022 14:08:51 for ViennaSHE by
1.9.3