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_is_placeholder.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_IS_PLACEHOLDER_HPP
11
#define SACADO_MPL_IS_PLACEHOLDER_HPP
12
13
#include "
Sacado_mpl_is_placeholder.hpp
"
14
#include "
Sacado_mpl_none.hpp
"
15
16
namespace
Sacado {
17
18
namespace
mpl {
19
20
template
<
class
F>
21
struct
is_placeholder
{
22
static
const
bool
value
=
false
;
23
};
24
template
<
int
N>
25
struct
is_placeholder
<
arg
<
N
> > {
26
static
const
bool
value
=
true
;
27
};
28
template
<
template
<
class
T1>
class
F
,
29
class
T1
>
30
struct
is_placeholder
<
F
<
T1
> > {
31
static
const
bool
value
=
is_placeholder<T1>::value
;
32
};
33
template
<
template
<
class
T1,
class
T2>
class
F
,
34
class
T1
,
35
class
T2
>
36
struct
is_placeholder
<
F
<
T1
,
T2
> > {
37
static
const
bool
value
=
38
is_placeholder<T1>::value
||
39
is_placeholder<T2>::value
;
40
};
41
template
<
template
<
class
T1,
class
T2,
class
T3>
class
F
,
42
class
T1
,
43
class
T2
,
44
class
T3>
45
struct
is_placeholder
<
F
<
T1
,
T2
,T3> > {
46
static
const
bool
value
=
47
is_placeholder<T1>::value
||
48
is_placeholder<T2>::value
||
49
is_placeholder<T3>::value
;
50
};
51
template
<
template
<
class
T1,
class
T2,
class
T3,
class
T4>
class
F
,
52
class
T1
,
53
class
T2
,
54
class
T3,
55
class
T4>
56
struct
is_placeholder
<
F
<
T1
,
T2
,T3,T4> > {
57
static
const
bool
value
=
58
is_placeholder<T1>::value
||
59
is_placeholder<T2>::value
||
60
is_placeholder<T3>::value
||
61
is_placeholder<T4>::value
;
62
};
63
template
<
template
<
class
T1,
class
T2,
class
T3,
class
T4,
class
T5>
class
F
,
64
class
T1
,
65
class
T2
,
66
class
T3,
67
class
T4,
68
class
T5>
69
struct
is_placeholder
<
F
<
T1
,
T2
,T3,T4,T5> > {
70
static
const
bool
value
=
71
is_placeholder<T1>::value
||
72
is_placeholder<T2>::value
||
73
is_placeholder<T3>::value
||
74
is_placeholder<T4>::value
||
75
is_placeholder<T5>::value
;
76
};
77
78
}
// namespace mpl
79
80
}
// namespace Sacado
81
82
#endif // SACADO_MPL_IS_PLACEHOLDER_HPP
Sacado::mpl::is_placeholder::value
static const bool value
Definition:
Sacado_mpl_is_placeholder.hpp:22
F
Sacado::Fad::DFad< double > F
Definition:
ad_example.cpp:20
Sacado::mpl::arg
Definition:
Sacado_mpl_placeholders.hpp:20
Sacado_mpl_is_placeholder.hpp
T2
#define T2(r, f)
Definition:
Sacado_rad.hpp:558
Sacado::Fad::DFad< double >
T1
#define T1(r, f)
Definition:
Sacado_rad.hpp:583
N
const int N
Definition:
SafeSqrtTests.cpp:17
Sacado::mpl::is_placeholder
Definition:
Sacado_mpl_is_placeholder.hpp:21
Sacado_mpl_none.hpp
Generated on Thu Nov 21 2024 09:24:00 for Sacado Package Browser (Single Doxygen Collection) by
1.8.5