1 #ifndef DUNE_BOUNDSCHECKING_HH
2 #define DUNE_BOUNDSCHECKING_HH
17 #ifndef DUNE_ASSERT_BOUNDS
18 #if defined(DUNE_CHECK_BOUNDS) || defined(DOXYGEN)
28 #define DUNE_ASSERT_BOUNDS(cond) \
31 DUNE_THROW(Dune::RangeError, "Index out of bounds."); \
35 #define DUNE_ASSERT_BOUNDS(cond)
41 #endif // DUNE_BOUNDSCHECKING_HH
A few common exception classes.