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_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
;
21
typedef
integral_c<T,N>
type
;
22
typedef
T
value_type
;
23
typedef
integral_c<T,N+1>
next
;
24
typedef
integral_c
<
T
,
N
-1>
prior
;
25
operator
T
()
const
{
return
N
; }
26
};
27
28
}
29
30
}
31
32
#endif
Sacado::mpl::integral_c
Definition:
Sacado_mpl_integral_c.hpp:19
T
#define T
Definition:
Sacado_rad.hpp:553
Sacado::mpl::integral_c::type
integral_c< T, N > type
Definition:
Sacado_mpl_integral_c.hpp:21
Sacado::mpl::integral_c::value_type
T value_type
Definition:
Sacado_mpl_integral_c.hpp:22
N
const int N
Definition:
SafeSqrtTests.cpp:17
Sacado::mpl::integral_c::next
integral_c< T, N+1 > next
Definition:
Sacado_mpl_integral_c.hpp:23
Sacado::mpl::integral_c::value
static const T value
Definition:
Sacado_mpl_integral_c.hpp:20
Sacado::mpl::integral_c::prior
integral_c< T, N-1 > prior
Definition:
Sacado_mpl_integral_c.hpp:24
Generated on Tue Nov 12 2024 09:21:52 for Sacado Package Browser (Single Doxygen Collection) by
1.8.5