cxxomfort  rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
List of all members
static_abs< T, u > Struct Template Reference

Provides the member value with one of the values [-u, 0, +u] depending on the sign of u . More...

Detailed Description

template<typename T, T u>
struct cxxomfort::st_math::static_abs< T, u >

Provides the member value with one of the values [-u, 0, +u] depending on the sign of u .

Utilities:
Compile-time absolute value of an integral, pre-C++11.

The helper types static_abs_s and static_abs_u operate on intmax_t and uintmax_t values, respectively.

See also static_sign .


The documentation for this struct was generated from the following file: