| 
    cxxomfort
    rel.20211024
    
   Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/ 
   | 
 
Implements some static (compile-time) math functions for C++. More...
Classes | |
| struct | static_sign< T, u > | 
Provides the member value with the sign of template parameter T u .  More... | |
| struct | static_sign_s< i > | 
Sign of a intmax_t .  More... | |
| struct | static_sign_u< i > | 
Sign of a uintmax_t .  More... | |
| struct | static_abs< T, u > | 
Provides the member value with one of the values [-u, 0, +u] depending on the sign of u .  More... | |
| struct | static_abs_s< i > | 
Absolute value of a intmax_t .  More... | |
| struct | static_abs_u< i > | 
Absolute value of a uintmax_t .  More... | |
| struct | static_clamp< T, t, m, M > | 
Defines the member value which is t, constrained to the range [m,M].  More... | |
| struct | static_minmax2< T, t0, t1 > | 
Defines the member values Tmin , Tmax with the minimum or maximum value between t0 and t1 .  More... | |
| struct | midpoint< Int, a, b > | 
Defines the member value , with value of type Int that is the numeric value at the middle between a and b.  More... | |
| struct | static_intpow< Int, x, y > | 
Defines the member value , of type Int and of value equal to x to the power of y .  More... | |
| struct | static_intlog< N, Ba > | 
Provides the member value with the value of the logarithm of N in base Ba .  More... | |
Namespaces | |
| cxxomfort | |
Namespace of the cxxomfort library.  | |
| cxxomfort::st_math | |
| Namespace for compile-time static (template based) arithmetic operations.  | |
Implements some static (compile-time) math functions for C++.
| struct cxxomfort::st_math::static_sign | 
Provides the member value with the sign of template parameter T u . 
| u | A compile-time value of type T used as argument. | 
The helper types static_sign_s and statuc_sign_u omit the parameter types and operate on intmax_t and uintmax_t values, respectively.
See also static_abs . 
 1.8.13