Dune Core Modules (2.6.0)
Go to the documentation of this file. 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)
A few common exception classes.