cxxomfort
rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
|
Implementations and backports tied to <numeric>
.
More...
Namespaces | |
cxxomfort | |
Namespace of the cxxomfort library. | |
cxxomfort::cxxostd | |
Backports made available by cxxomfort. | |
Functions | |
template<typename FwIt , typename T > | |
FwIt | iota (FwIt ini, FwIt fin, T i0) |
Fills a sequence with a sequentially growing set of values. "Numeric" iota. More... | |
template<typename FwIt , typename Integer , typename T > | |
FwIt | iota_n (FwIt ini, Integer n, T i0) |
Fills a sequence with a sequentially growing set of values. More... | |
template<typename Num1 , typename Num2 > | |
CXXO_CONSTEXPR Num1 | gcd (Num1 n1, Num2 n2) CXXO_NOEXCEPT |
Calculates the greatest common divisor. More... | |
template<typename Num1 , typename Num2 > | |
CXXO_CONSTEXPR Num1 | lcm (Num1 n1, Num2 n2) CXXO_NOEXCEPT |
Calculates the lowest common multiple. More... | |
template<typename Numeric > | |
CXXO_CONSTEXPR Numeric | midpoint (Numeric n1, Numeric n2) CXXO_NOEXCEPTNOTHROW |
Returns the midpoint between two numeric values, avoiding overflows. More... | |
template<typename Pointer > | |
Pointer | midpoint (Pointer p1, Pointer p2) CXXO_NOEXCEPTNOTHROW |
Returns the midpoint between two pointers. More... | |
Implementations and backports tied to <numeric>
.