|
quanta 0.1.0
Type-safe units for temperature, frequency, electrical and spatial quantities, modeled after std::chrono
|
Functions | |
| template<char... Digits> | |
| constexpr quanta::spatial::nanometers | operator""_nm () |
| Literal for nanometers (e.g., 850_nm). | |
| template<char... Digits> | |
| constexpr quanta::spatial::micrometers | operator""_um () |
| Literal for micrometers (e.g., 50_um). | |
| template<char... Digits> | |
| constexpr quanta::spatial::micrometers | operator""_µm () |
| Literal for micrometers (e.g., 50_µm). | |
| template<char... Digits> | |
| constexpr quanta::spatial::millimeters | operator""_mm () |
| Literal for millimeters (e.g., 250_mm). | |
| template<char... Digits> | |
| constexpr quanta::spatial::centimeters | operator""_cm () |
| Literal for centimeters (e.g., 30_cm). | |
| template<char... Digits> | |
| constexpr quanta::spatial::meters | operator""_m () |
| Literal for meters (e.g., 100_m). | |
| template<char... Digits> | |
| constexpr quanta::spatial::kilometers | operator""_km () |
| Literal for kilometers (e.g., 5_km). | |
| template<char... Digits> | |
| constexpr quanta::spatial::mils | operator""_mil () |
| Literal for mils (e.g., 8_mil). | |
| template<char... Digits> | |
| constexpr quanta::spatial::inches | operator""_in () |
| Literal for inches (e.g., 12_in). | |
| template<char... Digits> | |
| constexpr quanta::spatial::feet | operator""_ft () |
| Literal for feet (e.g., 6_ft). | |
| template<char... Digits> | |
| constexpr quanta::spatial::yards | operator""_yd () |
| Literal for yards (e.g., 100_yd). | |
| template<char... Digits> | |
| constexpr quanta::spatial::miles | operator""_mi () |
| Literal for miles (e.g., 26_mi). | |
| template<char... Digits> | |
| constexpr quanta::spatial::nautical_miles | operator""_nmi () |
| Literal for nautical miles (e.g., 12_nmi). | |
| template<char... Digits> | |
| constexpr quanta::spatial::square_millimeters | operator""_mm2 () |
| Literal for square millimeters (e.g., 50_mm2). | |
| template<char... Digits> | |
| constexpr quanta::spatial::square_centimeters | operator""_cm2 () |
| Literal for square centimeters (e.g., 100_cm2). | |
| template<char... Digits> | |
| constexpr quanta::spatial::square_meters | operator""_m2 () |
| Literal for square meters (e.g., 12_m2). | |
| template<char... Digits> | |
| constexpr quanta::spatial::hectares | operator""_ha () |
| Literal for hectares (e.g., 3_ha). | |
| template<char... Digits> | |
| constexpr quanta::spatial::square_kilometers | operator""_km2 () |
| Literal for square kilometers (e.g., 5_km2). | |
| template<char... Digits> | |
| constexpr quanta::spatial::square_inches | operator""_in2 () |
| Literal for square inches (e.g., 144_in2). | |
| template<char... Digits> | |
| constexpr quanta::spatial::square_feet | operator""_ft2 () |
| Literal for square feet (e.g., 120_ft2). | |
| template<char... Digits> | |
| constexpr quanta::spatial::square_yards | operator""_yd2 () |
| Literal for square yards (e.g., 9_yd2). | |
| template<char... Digits> | |
| constexpr quanta::spatial::acres | operator""_ac () |
| Literal for acres (e.g., 40_ac). | |
| template<char... Digits> | |
| constexpr quanta::spatial::square_miles | operator""_mi2 () |
| Literal for square miles (e.g., 2_mi2). | |
| template<char... Digits> | |
| constexpr quanta::spatial::microliters | operator""_uL () |
| Literal for microliters (e.g., 50_uL). | |
| template<char... Digits> | |
| constexpr quanta::spatial::microliters | operator""_µL () |
| Literal for microliters (e.g., 50_µL). | |
| template<char... Digits> | |
| constexpr quanta::spatial::milliliters | operator""_mL () |
| Literal for milliliters (e.g., 250_mL). | |
| template<char... Digits> | |
| constexpr quanta::spatial::liters | operator""_L () |
| Literal for liters (e.g., 2_L). | |
| template<char... Digits> | |
| constexpr quanta::spatial::cubic_meters | operator""_m3 () |
| Literal for cubic meters (e.g., 3_m3). | |
| template<char... Digits> | |
| constexpr quanta::spatial::cubic_millimeters | operator""_mm3 () |
| Literal for cubic millimeters, i.e. | |
| template<char... Digits> | |
| constexpr quanta::spatial::cubic_centimeters | operator""_cm3 () |
| Literal for cubic centimeters, i.e. | |
| template<char... Digits> | |
| constexpr quanta::spatial::cubic_inches | operator""_in3 () |
| Literal for cubic inches (e.g., 231_in3). | |
| template<char... Digits> | |
| constexpr quanta::spatial::cubic_feet | operator""_ft3 () |
| Literal for cubic feet (e.g., 10_ft3). | |
| template<char... Digits> | |
| constexpr quanta::spatial::cubic_yards | operator""_yd3 () |
| Literal for cubic yards (e.g., 3_yd3). | |
| template<char... Digits> | |
| constexpr quanta::spatial::us_gallons | operator""_gal () |
| Literal for US gallons (e.g., 5_gal). | |
|
constexpr |
Literal for microliters (e.g., 50_µL).
Unavailable on GCC before 14 (see QUANTA_HAS_UTF8_LITERALS).
Definition at line 1560 of file spatial.hpp.
|
constexpr |
Literal for micrometers (e.g., 50_µm).
Unavailable on GCC before 14 (see QUANTA_HAS_UTF8_LITERALS).
Definition at line 1426 of file spatial.hpp.
|
constexpr |
Literal for acres (e.g., 40_ac).
Definition at line 1541 of file spatial.hpp.
|
constexpr |
Literal for centimeters (e.g., 30_cm).
Definition at line 1439 of file spatial.hpp.
|
constexpr |
Literal for square centimeters (e.g., 100_cm2).
Definition at line 1499 of file spatial.hpp.
|
constexpr |
Literal for cubic centimeters, i.e.
milliliters (e.g., 250_cm3).
Definition at line 1591 of file spatial.hpp.
|
constexpr |
Literal for feet (e.g., 6_ft).
Definition at line 1469 of file spatial.hpp.
|
constexpr |
Literal for square feet (e.g., 120_ft2).
Definition at line 1529 of file spatial.hpp.
|
constexpr |
Literal for cubic feet (e.g., 10_ft3).
Definition at line 1603 of file spatial.hpp.
|
constexpr |
Literal for US gallons (e.g., 5_gal).
Definition at line 1615 of file spatial.hpp.
|
constexpr |
Literal for hectares (e.g., 3_ha).
Definition at line 1511 of file spatial.hpp.
|
constexpr |
Literal for inches (e.g., 12_in).
Definition at line 1463 of file spatial.hpp.
|
constexpr |
Literal for square inches (e.g., 144_in2).
Definition at line 1523 of file spatial.hpp.
|
constexpr |
Literal for cubic inches (e.g., 231_in3).
Definition at line 1597 of file spatial.hpp.
|
constexpr |
Literal for kilometers (e.g., 5_km).
Definition at line 1451 of file spatial.hpp.
|
constexpr |
Literal for square kilometers (e.g., 5_km2).
Definition at line 1517 of file spatial.hpp.
|
constexpr |
Literal for liters (e.g., 2_L).
Definition at line 1573 of file spatial.hpp.
|
constexpr |
Literal for meters (e.g., 100_m).
Definition at line 1445 of file spatial.hpp.
|
constexpr |
Literal for square meters (e.g., 12_m2).
Definition at line 1505 of file spatial.hpp.
|
constexpr |
Literal for cubic meters (e.g., 3_m3).
Definition at line 1579 of file spatial.hpp.
|
constexpr |
Literal for miles (e.g., 26_mi).
Definition at line 1481 of file spatial.hpp.
|
constexpr |
Literal for square miles (e.g., 2_mi2).
Definition at line 1547 of file spatial.hpp.
|
constexpr |
Literal for mils (e.g., 8_mil).
Definition at line 1457 of file spatial.hpp.
|
constexpr |
Literal for milliliters (e.g., 250_mL).
Definition at line 1567 of file spatial.hpp.
|
constexpr |
Literal for millimeters (e.g., 250_mm).
Definition at line 1433 of file spatial.hpp.
|
constexpr |
Literal for square millimeters (e.g., 50_mm2).
Definition at line 1493 of file spatial.hpp.
|
constexpr |
Literal for cubic millimeters, i.e.
microliters (e.g., 50_mm3).
Definition at line 1585 of file spatial.hpp.
|
constexpr |
Literal for nanometers (e.g., 850_nm).
Definition at line 1413 of file spatial.hpp.
|
constexpr |
Literal for nautical miles (e.g., 12_nmi).
Definition at line 1487 of file spatial.hpp.
|
constexpr |
Literal for microliters (e.g., 50_uL).
Definition at line 1553 of file spatial.hpp.
|
constexpr |
Literal for micrometers (e.g., 50_um).
Definition at line 1419 of file spatial.hpp.
|
constexpr |
Literal for yards (e.g., 100_yd).
Definition at line 1475 of file spatial.hpp.
|
constexpr |
Literal for square yards (e.g., 9_yd2).
Definition at line 1535 of file spatial.hpp.
|
constexpr |
Literal for cubic yards (e.g., 3_yd3).
Definition at line 1609 of file spatial.hpp.