Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
#define T
Definition: Sacado_rad.hpp:553
A meta-function that defines U as its type.
A dummy argument that can be converted to any scalar type.