dune-geometry
2.2.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
geometry
genericgeometry
maximum.hh
Go to the documentation of this file.
1
#ifndef DUNE_GEOMETRY_GENERICGEOMETRY_MAXIMUM_HH
2
#define DUNE_GEOMETRY_GENERICGEOMETRY_MAXIMUM_HH
3
4
#include <dune/common/forloop.hh>
5
6
namespace
Dune
7
{
8
9
namespace
GenericGeometry
10
{
11
12
// StaticMaximum
13
// -------------
14
15
template
<
class
A,
class
B >
16
struct
StaticMaximum
17
{
18
static
const
int
v
= (A::v > B::v ? A::v :
B::v
);
19
};
20
21
22
23
// Maximum
24
// -------
25
26
template
<
template
<
int
>
class
Value,
int
first,
int
last >
27
struct
Maximum
28
:
public
GenericForLoop< StaticMaximum, Value, first, last >
29
{};
30
31
}
32
33
}
34
35
#endif // DUNE_GEOMETRY_GENERICGEOMETRY_MAXIMUM_HH
Generated on Mon Jun 4 2012 12:00:57 for dune-geometry by
1.8.1