27 #ifndef CDPL_MATH_CHECK_HPP
28 #define CDPL_MATH_CHECK_HPP
32 #ifndef CDPL_MATH_CHECK
33 # ifdef CDPL_MATH_CHECKS_DISABLE
34 # define CDPL_MATH_CHECK(expr, msg, e)
36 # define CDPL_MATH_CHECK(expr, msg, e) \
47 template <
typename E,
typename T>
48 T checkSizeEquality(
const T& size1,
const T& size2)
51 return std::min(size1, size2);
54 template <
typename E,
typename T>
55 T checkMaxSize(
const T& size,
const T& max_size)
58 return std::min(size, max_size);
62 #define CDPL_MATH_CHECK_SIZE_EQUALITY(size1, size2, e) checkSizeEquality<e>(size1, size2)
64 #define CDPL_MATH_CHECK_MAX_SIZE(size, max_size, e) checkMaxSize<e>(size, max_size)
#define CDPL_MATH_CHECK(expr, msg, e)
Definition: Check.hpp:36
constexpr unsigned int T
Specifies Hydrogen (Tritium).
Definition: AtomType.hpp:67
constexpr unsigned int E
Specifies that the stereocenter has E configuration.
Definition: CIPDescriptor.hpp:96