xo-ratio documentation

xo-ratio is a lightweight header-only library that provides a constexpr fixed-size no-allocation ratio implementation.

Why ratio?

  1. ratio instances can be used as template arguments. [1]

  2. ratio operations (arithmetic, integer powers, string conversion, …) are constexpr, so can be done at compile time. [2]

  3. a ratio expression can occupy both compile-time and runtime roles. [3]

Indices and Tables