dune-geometry  2.2.1
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 >
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