mp_units::si::prefix_range¶
Which SI prefixes invoke_with_prefixed may choose
Synopsis¶
Declared in <mp-units/systems/si/prefix_utils.h>
enum class prefix_range : int;
Description¶
#include <mp-units/systems/si/prefix_utils.h>
auto print = [](auto q) { std::cout << q << '\n'; };
si::invoke_with_prefixed(print, 0.05 * m, m); // 50 mm
si::invoke_with_prefixed(print, 0.05 * m, m, si::prefix_range::full); // 5 cm
Members¶
| Name | Description |
|---|---|
engineering | Only the prefixes of powers of 1000, such as k, M, and m |
full | Every prefix, c, d, da, and h included |