![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
#include <Standard_Std.hxx>#include <Standard_TypeDef.hxx>#include <algorithm>#include <climits>#include <cmath>Functions | |
| constexpr int | Abs (const int theValue) |
Returns the absolute value of a int Value. Equivalent to std::abs. | |
| constexpr bool | IsEven (const int theValue) |
Returns true if theValue is even. | |
| constexpr bool | IsOdd (const int theValue) |
Returns true if theValue is odd. | |
| Use std::max instead constexpr int | Max (const int theValue1, const int theValue2) |
| Returns the maximum value of two integers. Equivalent to std::max. | |
| Use std::min instead constexpr int | Min (const int theValue1, const int theValue2) |
| Returns the minimum value of two integers. Equivalent to std::min. | |
| constexpr int | Modulus (const int theValue, const int theDivisor) |
Returns the modulus of theValue by theDivisor. | |
| constexpr int | Square (const int theValue) |
Returns the square of a int theValue. Note that behavior is undefined in case of overflow. | |
| constexpr int | IntegerFirst () |
| Returns the minimum value of an integer. | |
| constexpr int | IntegerLast () |
| Returns the maximum value of an integer. | |
| constexpr int | IntegerSize () |
| Returns the size in bits of an integer. | |
Returns the absolute value of a int Value. Equivalent to std::abs.
Returns the maximum value of two integers. Equivalent to std::max.
Returns the minimum value of two integers. Equivalent to std::min.
Returns the modulus of theValue by theDivisor.