cxxomfort
rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
|
Implementations, Backports and helpers for Standard header <ratio>
.
More...
Classes | |
struct | ratio< N, D > |
Represents finite rational numbers with numerator and denominator that fit into C++'s type system. More... | |
struct | ratio_equal< R1, R2 > |
Helper type that compares two ratio R1 and R2 for if they are equal (after reduction) More... | |
struct | ratio_not_equal< R1, R2 > |
Helper type that compares two ratio R1 and R2 for if they are not equal (after reduction) More... | |
struct | ratio_less< R1, R2 > |
Helper type that compares two ratio R1 and R2 for if R1 < R2 (after reduction) More... | |
struct | ratio_greater< R1, R2 > |
Helper type that compares two ratio R1 and R2 for if R1 > R2 (after reduction) More... | |
struct | ratio_less_equal< R1, R2 > |
Helper type that compares two ratio R1 and R2 for if R1 <= R2 (after reduction) More... | |
struct | ratio_greater_equal< R1, R2 > |
Helper type that compares two ratio R1 and R2 for if R1 >= R2 (after reduction) More... | |
Typedefs | |
typedef ratio< 1, 1000000000000000000 > | atto |
Convenience SI typedef. | |
typedef ratio< 1, 1000000000000000 > | femto |
Convenience SI typedef. | |
typedef ratio< 1, 1000000000000 > | pico |
Convenience SI typedef. | |
typedef ratio< 1, 1000000000 > | nano |
Convenience SI typedef. | |
typedef ratio< 1, 1000000 > | micro |
Convenience SI typedef. | |
typedef ratio< 1, 1000 > | milli |
Convenience SI typedef. | |
typedef ratio< 1, 100 > | centi |
Convenience SI typedef. | |
typedef ratio< 1, 10 > | deci |
Convenience SI typedef. | |
typedef ratio< 10, 1 > | deca |
Convenience SI typedef. | |
typedef ratio< 100, 1 > | hecto |
Convenience SI typedef. | |
typedef ratio< 1000, 1 > | kilo |
Convenience SI typedef. | |
typedef ratio< 1000000, 1 > | mega |
Convenience SI typedef. | |
typedef ratio< 1000000000, 1 > | giga |
Convenience SI typedef. | |
typedef ratio< 1000000000000, 1 > | tera |
Convenience SI typedef. | |
typedef ratio< 1000000000000000, 1 > | peta |
Convenience SI typedef. | |
typedef ratio< 1000000000000000000, 1 > | exa |
Convenience SI typedef. | |
Implementations, Backports and helpers for Standard header <ratio>
.