xo-ratio documentation
xo-ratio is a lightweight header-only library that provides a constexpr fixed-size no-allocation ratio implementation.
Why ratio
?
ratio
instances can be used as template arguments. [1]ratio
operations (arithmetic, integer powers, string conversion, …) areconstexpr
, so can be done at compile time. [2]a
ratio
expression can occupy both compile-time and runtime roles. [3]