dune-geometry  2.3.1-rc1
maximum.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_GENERICGEOMETRY_MAXIMUM_HH
4 #define DUNE_GEOMETRY_GENERICGEOMETRY_MAXIMUM_HH
5 
6 #include <dune/common/forloop.hh>
7 
8 namespace Dune
9 {
10 
11  namespace GenericGeometry
12  {
13 
14  // StaticMaximum
15  // -------------
16 
17  template< class A, class B >
19  {
20  static const int v = (A::v > B::v ? A::v : B::v);
21  };
22 
23 
24 
25  // Maximum
26  // -------
27 
28  template< template< int > class Value, int first, int last >
29  struct Maximum
30  : public GenericForLoop< StaticMaximum, Value, first, last >
31  {};
32 
33  }
34 
35 }
36 
37 #endif // DUNE_GEOMETRY_GENERICGEOMETRY_MAXIMUM_HH
Definition: maximum.hh:18
static const int v
Definition: maximum.hh:20
Definition: maximum.hh:29