dune-geometry  2.4
dimension.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_GEOMETRY_DIMENSION_HH
4 #define DUNE_GEOMETRY_DIMENSION_HH
5 
6 #include <type_traits>
7 
8 namespace Dune {
9 
11  template<int dim>
12  struct Dim
13  : public std::integral_constant<int,dim>
14  {
15  typedef Dim type;
16  };
17 
19  template<int codim>
20  struct Codim
21  : public std::integral_constant<int,codim>
22  {
23  typedef Codim type;
24  };
25 
26 }
27 
28 #endif // DUNE_GEOMETRY_DIMENSION_HH
Definition: affinegeometry.hh:18
Codim type
Definition: dimension.hh:23
Static tag representing a dimension.
Definition: dimension.hh:12
Static tag representing a codimension.
Definition: dimension.hh:20
Dim type
Definition: dimension.hh:15