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_placeholders.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_PLACEHOLDERS_HPP
11
#define SACADO_MPL_PLACEHOLDERS_HPP
12
13
#include "
Sacado_mpl_none.hpp
"
14
15
namespace
Sacado {
16
17
namespace
mpl {
18
19
// Placeholder definitions
20
template
<
int
N>
struct
arg
{};
21
22
template
<>
struct
arg
<1> {
23
template
<
class
A1,
24
class
A2=
mpl::none
,
25
class
A3=
mpl::none
,
26
class
A4=
mpl::none
,
27
class
A5=
mpl::none
>
28
struct
apply
{
29
typedef
A1
type
;
30
};
31
};
32
template
<>
struct
arg
<2> {
33
template
<
class
A1,
34
class
A2,
35
class
A3=
mpl::none
,
36
class
A4=
mpl::none
,
37
class
A5=
mpl::none
>
38
struct
apply
{
39
typedef
A2
type
;
40
};
41
};
42
template
<>
struct
arg
<3> {
43
template
<
class
A1,
44
class
A2,
45
class
A3,
46
class
A4=
mpl::none
,
47
class
A5=
mpl::none
>
48
struct
apply
{
49
typedef
A3
type
;
50
};
51
};
52
template
<>
struct
arg
<4> {
53
template
<
class
A1,
54
class
A2,
55
class
A3,
56
class
A4,
57
class
A5=
mpl::none
>
58
struct
apply
{
59
typedef
A4
type
;
60
};
61
};
62
template
<>
struct
arg
<5> {
63
template
<
class
A1,
64
class
A2,
65
class
A3,
66
class
A4,
67
class
A5>
68
struct
apply
{
69
typedef
A5
type
;
70
};
71
};
72
73
// Placeholder synonyms
74
namespace
placeholders {
75
typedef
arg<1>
_1
;
76
typedef
arg<2>
_2
;
77
typedef
arg<3>
_3
;
78
typedef
arg<4>
_4
;
79
typedef
arg<5>
_5
;
80
typedef
arg
<-1>
_
;
81
}
// namespace placeholders
82
83
}
// namespace mpl
84
85
}
// namespace Sacado
86
87
#endif // SACADO_MPL_PLACEHOLDERS_HPP
Sacado::mpl::arg< 2 >
Definition:
Sacado_mpl_placeholders.hpp:32
Sacado::mpl::arg< 3 >::apply::type
A3 type
Definition:
Sacado_mpl_placeholders.hpp:49
Sacado::mpl::arg< 2 >::apply::type
A2 type
Definition:
Sacado_mpl_placeholders.hpp:39
Sacado::mpl::arg
Definition:
Sacado_mpl_placeholders.hpp:20
Sacado::mpl::arg< 4 >
Definition:
Sacado_mpl_placeholders.hpp:52
Sacado::mpl::arg< 1 >
Definition:
Sacado_mpl_placeholders.hpp:22
Sacado::mpl::placeholders::_4
arg< 4 > _4
Definition:
Sacado_mpl_placeholders.hpp:78
Sacado::mpl::placeholders::_1
arg< 1 > _1
Definition:
Sacado_mpl_placeholders.hpp:75
Sacado::mpl::placeholders::_2
arg< 2 > _2
Definition:
Sacado_mpl_placeholders.hpp:76
Sacado::mpl::arg< 1 >::apply::type
A1 type
Definition:
Sacado_mpl_placeholders.hpp:29
Sacado::mpl::arg< 5 >
Definition:
Sacado_mpl_placeholders.hpp:62
Sacado::mpl::none
Definition:
Sacado_mpl_none.hpp:17
Sacado::mpl::arg< 3 >
Definition:
Sacado_mpl_placeholders.hpp:42
Sacado::mpl::placeholders::_3
arg< 3 > _3
Definition:
Sacado_mpl_placeholders.hpp:77
Sacado::mpl::arg< 4 >::apply::type
A4 type
Definition:
Sacado_mpl_placeholders.hpp:59
Sacado::mpl::placeholders::_5
arg< 5 > _5
Definition:
Sacado_mpl_placeholders.hpp:79
Sacado::mpl::placeholders::_
arg<-1 > _
Definition:
Sacado_mpl_placeholders.hpp:80
Sacado::mpl::apply
Definition:
Sacado_mpl_apply.hpp:45
Sacado::mpl::arg< 5 >::apply::type
A5 type
Definition:
Sacado_mpl_placeholders.hpp:69
Sacado_mpl_none.hpp
Generated on Tue Nov 12 2024 09:21:52 for Sacado Package Browser (Single Doxygen Collection) by
1.8.5