Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Sacado_Base.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_BASE_HPP
11 #define SACADO_BASE_HPP
12 
13 namespace Sacado {
14 
16 
25  template <typename T>
26  struct Base {
27  typedef T derived_type;
28  const derived_type& derived() const {
29  return static_cast<const derived_type&>(*this);
30  }
31  };
32 
33 }
34 
35 #endif // SACADO_BASE_HPP
Base class for Sacado types to control overload resolution.
Definition: Sacado_Base.hpp:26
#define T
Definition: Sacado_rad.hpp:553
const derived_type & derived() const
Definition: Sacado_Base.hpp:28