Sacado Package Browser (Single Doxygen Collection)
Version of the Day
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
mpl
Sacado_mpl_disable_if.hpp
Go to the documentation of this file.
1
// @HEADER
2
// *****************************************************************************
3
// Sacado Package
4
//
5
// Copyright 2006 NTESS and the Sacado contributors.
6
// SPDX-License-Identifier: LGPL-2.1-or-later
7
// *****************************************************************************
8
// @HEADER
9
10
#ifndef SACADO_MPL_DISABLE_IF_HPP
11
#define SACADO_MPL_DISABLE_IF_HPP
12
13
namespace
Sacado {
14
15
namespace
mpl {
16
17
template
<
bool
,
typename
T =
void
>
18
struct
disable_if_c
{};
19
20
template
<
typename
T>
21
struct
disable_if_c
<
false
,
T
> {
22
typedef
T
type
;
23
};
24
25
template
<
class
Cond,
typename
T =
void
>
26
struct
disable_if
27
:
disable_if_c
<Cond::value, T> {};
28
29
template
<
bool
,
typename
T =
void
>
30
struct
lazy_disable_if_c
{};
31
32
template
<
typename
T>
33
struct
lazy_disable_if_c
<
false
,
T
> {
34
typedef
typename
T::type
type
;
35
};
36
37
template
<
class
Cond,
typename
T =
void
>
38
struct
lazy_disable_if
39
:
lazy_disable_if_c
<Cond::value, T> {};
40
41
}
42
43
}
44
45
#endif // SACADO_MPL_DISABLE_IF_HPP
Sacado::mpl::lazy_disable_if_c
Definition:
Sacado_mpl_disable_if.hpp:30
T
#define T
Definition:
Sacado_rad.hpp:553
Sacado::mpl::disable_if_c
Definition:
Sacado_mpl_disable_if.hpp:18
Sacado::mpl::disable_if_c< false, T >::type
T type
Definition:
Sacado_mpl_disable_if.hpp:22
Sacado::mpl::lazy_disable_if
Definition:
Sacado_mpl_disable_if.hpp:38
false
expr expr expr bar false
Definition:
Sacado_ELRFad_Ops.hpp:171
Sacado::mpl::lazy_disable_if_c< false, T >::type
T::type type
Definition:
Sacado_mpl_disable_if.hpp:34
Sacado::mpl::disable_if
Definition:
Sacado_mpl_disable_if.hpp:26
Generated on Tue Nov 12 2024 09:21:52 for Sacado Package Browser (Single Doxygen Collection) by
1.8.5