|
2445 | 2445 | inline constexpr bool @\libglobal{ratio_greater_equal_v}@ = ratio_greater_equal<R1, R2>::value;
|
2446 | 2446 |
|
2447 | 2447 | // \ref{ratio.si}, convenience SI typedefs
|
2448 |
| - using yocto = ratio<1, 1'000'000'000'000'000'000'000'000>; // see below |
2449 |
| - using zepto = ratio<1, 1'000'000'000'000'000'000'000>; // see below |
2450 |
| - using atto = ratio<1, 1'000'000'000'000'000'000>; |
2451 |
| - using femto = ratio<1, 1'000'000'000'000'000>; |
2452 |
| - using pico = ratio<1, 1'000'000'000'000>; |
2453 |
| - using nano = ratio<1, 1'000'000'000>; |
2454 |
| - using micro = ratio<1, 1'000'000>; |
2455 |
| - using milli = ratio<1, 1'000>; |
2456 |
| - using centi = ratio<1, 100>; |
2457 |
| - using deci = ratio<1, 10>; |
2458 |
| - using deca = ratio< 10, 1>; |
2459 |
| - using hecto = ratio< 100, 1>; |
2460 |
| - using kilo = ratio< 1'000, 1>; |
2461 |
| - using mega = ratio< 1'000'000, 1>; |
2462 |
| - using giga = ratio< 1'000'000'000, 1>; |
2463 |
| - using tera = ratio< 1'000'000'000'000, 1>; |
2464 |
| - using peta = ratio< 1'000'000'000'000'000, 1>; |
2465 |
| - using exa = ratio< 1'000'000'000'000'000'000, 1>; |
2466 |
| - using zetta = ratio< 1'000'000'000'000'000'000'000, 1>; // see below |
2467 |
| - using yotta = ratio<1'000'000'000'000'000'000'000'000, 1>; // see below |
| 2448 | + using @\libglobal{yocto}@ = ratio<1, 1'000'000'000'000'000'000'000'000>; // see below |
| 2449 | + using @\libglobal{zepto}@ = ratio<1, 1'000'000'000'000'000'000'000>; // see below |
| 2450 | + using @\libglobal{atto}@ = ratio<1, 1'000'000'000'000'000'000>; |
| 2451 | + using @\libglobal{femto}@ = ratio<1, 1'000'000'000'000'000>; |
| 2452 | + using @\libglobal{pico}@ = ratio<1, 1'000'000'000'000>; |
| 2453 | + using @\libglobal{nano}@ = ratio<1, 1'000'000'000>; |
| 2454 | + using @\libglobal{micro}@ = ratio<1, 1'000'000>; |
| 2455 | + using @\libglobal{milli}@ = ratio<1, 1'000>; |
| 2456 | + using @\libglobal{centi}@ = ratio<1, 100>; |
| 2457 | + using @\libglobal{deci}@ = ratio<1, 10>; |
| 2458 | + using @\libglobal{deca}@ = ratio< 10, 1>; |
| 2459 | + using @\libglobal{hecto}@ = ratio< 100, 1>; |
| 2460 | + using @\libglobal{kilo}@ = ratio< 1'000, 1>; |
| 2461 | + using @\libglobal{mega}@ = ratio< 1'000'000, 1>; |
| 2462 | + using @\libglobal{giga}@ = ratio< 1'000'000'000, 1>; |
| 2463 | + using @\libglobal{tera}@ = ratio< 1'000'000'000'000, 1>; |
| 2464 | + using @\libglobal{peta}@ = ratio< 1'000'000'000'000'000, 1>; |
| 2465 | + using @\libglobal{exa}@ = ratio< 1'000'000'000'000'000'000, 1>; |
| 2466 | + using @\libglobal{zetta}@ = ratio< 1'000'000'000'000'000'000'000, 1>; // see below |
| 2467 | + using @\libglobal{yotta}@ = ratio<1'000'000'000'000'000'000'000'000, 1>; // see below |
2468 | 2468 | }
|
2469 | 2469 | \end{codeblockdigitsep}
|
2470 | 2470 |
|
|
2626 | 2626 | \rSec2[ratio.si]{SI types for \tcode{ratio}}
|
2627 | 2627 |
|
2628 | 2628 | \pnum
|
| 2629 | +\indexlibraryglobal{yocto}% |
| 2630 | +\indexlibraryglobal{zepto}% |
| 2631 | +\indexlibraryglobal{zetta}% |
| 2632 | +\indexlibraryglobal{yotta}% |
2629 | 2633 | For each of the \grammarterm{typedef-name}{s} \tcode{yocto}, \tcode{zepto},
|
2630 | 2634 | \tcode{zetta}, and \tcode{yotta}, if both of the constants used in its
|
2631 | 2635 | specification are representable by \tcode{intmax_t}, the typedef is
|
|
0 commit comments