Dune Core Modules (2.5.2)

dimension.hh
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
8namespace 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
Dune namespace.
Definition: alignment.hh:11
Static tag representing a codimension.
Definition: dimension.hh:22
Static tag representing a dimension.
Definition: dimension.hh:14
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 12, 23:30, 2024)