Dune Core Modules (2.4.1)

ftraits.hh
Go to the documentation of this file.
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2// vi: set et ts=4 sw=2 sts=2:
3#ifndef DUNE_FTRAITS_HH
4#define DUNE_FTRAITS_HH
5
10#include <complex>
11
12namespace Dune {
13
21 template<class T>
22 struct FieldTraits
23 {
25 typedef T field_type;
27 typedef T real_type;
28 };
29
30 template<class T>
31 struct FieldTraits<const T>
32 {
33 typedef typename FieldTraits<T>::field_type field_type;
34 typedef typename FieldTraits<T>::real_type real_type;
35 };
36
37 template<class T>
38 struct FieldTraits< std::complex<T> >
39 {
40 typedef std::complex<T> field_type;
41 typedef T real_type;
42 };
43
44} // end namespace Dune
45
46#endif // DUNE_FTRAITS_HH
Dune namespace.
Definition: alignment.hh:10
STL namespace.
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 22, 23:30, 2024)