Loading...
Searching...
No Matches
dimension.hh
Go to the documentation of this file.
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
#ifndef DUNE_GEOMETRY_DIMENSION_HH
#define DUNE_GEOMETRY_DIMENSION_HH
#include <type_traits>
namespace Dune {
template<int dim>
struct Dim
: public std::integral_constant<int,dim>
{
typedef Dim type;
};
template<int codim>
struct Codim
: public std::integral_constant<int,codim>
{
typedef Codim type;
};
}
#endif // DUNE_GEOMETRY_DIMENSION_HH
Dune
Definition affinegeometry.hh:22
Dune::Dim
Static tag representing a dimension.
Definition dimension.hh:16
Dune::Dim::type
Dim type
Definition dimension.hh:17
Dune::Codim
Static tag representing a codimension.
Definition dimension.hh:24
Dune::Codim::type
Codim type
Definition dimension.hh:25