dune-common  2.2.0
ftraits.hh
Go to the documentation of this file.
1 // $Id: fvector.hh 5262 2008-09-07 09:03:38Z christi $
2 #ifndef DUNE_FTRAITS_HH
3 #define DUNE_FTRAITS_HH
4 
9 #include <complex>
10 
11 namespace Dune {
12 
20 template<class T>
22 {
24  typedef T field_type;
26  typedef T real_type;
27 };
28 
29 template<class T>
30 struct FieldTraits<const T>
31 {
34 };
35 
36 template<class T>
37 struct FieldTraits< std::complex<T> >
38 {
39  typedef std::complex<T> field_type;
40  typedef T real_type;
41 };
42 
43 } // end namespace Dune
44 
45 #endif // DUNE_FTRAITS_HH