cxxomfort
rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
|
Backports related to Standard header <ratio>
(or automatically by including <cxxomfort/backports.hpp>
/ <cxxomfort/cxxomfort.hpp>
)
The following interfaces are provided by this header:
std::ratio
ratio_equal
, ratio_not_equal
ratio_less
, ratio_greater
milli
.C++11 <ratio> also provides a number of convenience typedefs representing SI ratio/factor prefixes such as mega or centi . Some of those names are also exposed by cxxomfort:
atto
, femto
, pico
, nano
, micro
, milli
, enti
, deci
deca
, hecto
, kilo
, mega
, giga
, tera
, peta
, exa
As of this release the prefixes higher than 10^18
or smaller than 10^-18
, such as yotta
, are not provided.