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_integral_c.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_INTEGRAL_C_HPP
11 #define SACADO_MPL_INTEGRAL_C_HPP
12 
13 namespace Sacado {
14 
15  namespace mpl {
16 
17  // Type wrapper for storing an integral value
18  template <class T, T N>
19  struct integral_c {
20  static const T value = N;
22  typedef T value_type;
24  typedef integral_c<T,N-1> prior;
25  operator T() const { return N; }
26  };
27 
28  }
29 
30 }
31 
32 #endif
#define T
Definition: Sacado_rad.hpp:553
const int N