Dune Core Modules (2.3.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// $Id: fvector.hh 5262 2008-09-07 09:03:38Z christi $
4#ifndef DUNE_FTRAITS_HH
5#define DUNE_FTRAITS_HH
6
11#include <complex>
12
13namespace Dune {
14
22 template<class T>
23 struct FieldTraits
24 {
26 typedef T field_type;
28 typedef T real_type;
29 };
30
31 template<class T>
32 struct FieldTraits<const T>
33 {
34 typedef typename FieldTraits<T>::field_type field_type;
35 typedef typename FieldTraits<T>::real_type real_type;
36 };
37
38 template<class T>
39 struct FieldTraits< std::complex<T> >
40 {
41 typedef std::complex<T> field_type;
42 typedef T real_type;
43 };
44
45} // end namespace Dune
46
47#endif // DUNE_FTRAITS_HH
Dune namespace.
Definition: alignment.hh:14
STL namespace.
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 12, 23:30, 2024)