cxxomfort  rel.20210622
Simple backports for C++ - http://ryan.gulix.cl/fossil.cgi/cxxomfort/
Namespaces | Functions
numeric.hpp File Reference

Implementations and backports tied to <numeric>. More...

Namespaces

 cxxomfort
 Namespace of the cxxomfort library.
 
 cxxomfort::cxxostd
 Backports made available by cxxomfort.
 
 cxxomfort::fix
 Fixes for implementation issues in std.
 

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...
 

Detailed Description

Implementations and backports tied to <numeric>.

<numeric>: