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
Sacado_dummy_arg.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_DUMMY_ARG_HPP
11
#define SACADO_DUMMY_ARG_HPP
12
13
namespace
Sacado {
14
16
template
<
class
T>
struct
dummy_arg
{
17
operator
T
()
const
{
return
T
(0.0); }
18
};
19
21
template
<
class
T,
class
U>
struct
dummy
{
22
typedef
U
type
;
23
};
24
26
template
<
class
T>
struct
dummy
<
T
,
T
> {
27
typedef
dummy_arg<T>
type
;
28
};
29
30
}
// namespace Sacado
31
32
#endif // SACADO_DUMMY_ARG_HPP
T
#define T
Definition:
Sacado_rad.hpp:553
Sacado::dummy
A meta-function that defines U as its type.
Definition:
Sacado_dummy_arg.hpp:21
Sacado::dummy_arg
A dummy argument that can be converted to any scalar type.
Definition:
Sacado_dummy_arg.hpp:16
Sacado::dummy::type
U type
Definition:
Sacado_dummy_arg.hpp:22
Sacado::dummy< T, T >::type
dummy_arg< T > type
Definition:
Sacado_dummy_arg.hpp:27
Generated on Thu Nov 21 2024 09:23:58 for Sacado Package Browser (Single Doxygen Collection) by
1.8.5