Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
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 =
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 =
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 =
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 =
76  };
77 
78  } // namespace mpl
79 
80 } // namespace Sacado
81 
82 #endif // SACADO_MPL_IS_PLACEHOLDER_HPP
Sacado::Fad::DFad< double > F
Definition: ad_example.cpp:20
#define T2(r, f)
Definition: Sacado_rad.hpp:558
#define T1(r, f)
Definition: Sacado_rad.hpp:583
const int N