dune-geometry
2.2.0
|
00001 #ifndef DUNE_GEOMETRY_GENERICGEOMETRY_MAXIMUM_HH 00002 #define DUNE_GEOMETRY_GENERICGEOMETRY_MAXIMUM_HH 00003 00004 #include <dune/common/forloop.hh> 00005 00006 namespace Dune 00007 { 00008 00009 namespace GenericGeometry 00010 { 00011 00012 // StaticMaximum 00013 // ------------- 00014 00015 template< class A, class B > 00016 struct StaticMaximum 00017 { 00018 static const int v = (A::v > B::v ? A::v : B::v); 00019 }; 00020 00021 00022 00023 // Maximum 00024 // ------- 00025 00026 template< template< int > class Value, int first, int last > 00027 struct Maximum 00028 : public GenericForLoop< StaticMaximum, Value, first, last > 00029 {}; 00030 00031 } 00032 00033 } 00034 00035 #endif // DUNE_GEOMETRY_GENERICGEOMETRY_MAXIMUM_HH