Namespaces
Name |
mp_units namespace
Types
Name |
Description |
A dimension of a base quantity |
|
A compile‐time fixed string |
|
Measurement unit for an accumulation of two quantities of different units |
|
A dimension of a derived quantity |
|
A specification of a derived quantity |
|
Measurement unit for a derived quantity |
|
Dimension one |
|
Quantity of dimension one |
|
A named unit |
|
Specialization for a unit that can be reused by several base quantities |
|
Specialization for unit of a specified base quantity |
|
Specialization for a unit with special name valid only for a specific quantity |
|
Unit one |
|
Type list type storing the list of components with negative exponents |
|
Type container for exponents with ratio different than |
|
A prefixed unit |
|
A quantity |
|
Provides support for external quantity‐like types |
|
A quantity point |
|
Provides support for external quantity point‐like types |
|
Quantity reference type |
|
A type trait that defines zero, one, min, and max for a representation type |
|
Unit being a scaled version of another unit |
|
A symbol text representation |
|
System‐specific reference |
|
Enums
Name |
Description |
Quantity character |
|
Functions
Name |
Description |
Computes the absolute value of a quantity |
|
|
|
Computes the smallest quantity with integer representation and unit type To with its number not less than q |
|
Computes the cubic power of a unit |
|
Returns the epsilon of the quantity |
|
Computes Euler's raised to the given power |
|
Computes the largest quantity with integer representation and unit type To with its number not greater than q |
|
|
|
Computes the floating‐point remainder of the division operation x / y. |
|
|
|
Computes the inverse of a quantity in a provided unit |
|
|
|
|
|
|
|
Linear interpolation or extrapolation |
|
Computes the midpoint of two points |
|
Modulus operators |
|
Multiplication operators |
|
Addition operators |
|
Subtraction operators |
|
Division operators |
|
|
|
|
|
Computes the IEEE remainder of the floating point division operation x / y. |
|
Computes the nearest quantity with integer representation and unit type |
|
|
|
Computes the square power of a unit |
|
|
|
Stream insertion operators |
|
Equality operators |
|
Three‐way comparison operators |
Variables
Name |
Description |
Quantity of dimension one |
|
//////////// REAL SCALAR /////////////// |
|
|
|
|
|
|
|
|
|
Specifies if a specific conversion between two types preserves the value |
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
|
Create a Magnitude which is some rational number raised to a rational power. |
|
Puts a space ' ' sign before a unit symbol |
|
Specifies if a value of a type should be treated as a floating‐point value |
|
Concepts
Name |
Description |
A concept matching all units that can be used as quantity references |
|
A concept matching all dimensions in the library. |
|
A concept checking if the argument is of the same dimension. |
|
A concept matching all quantity point origins in the library |
|
A concept matching all quantity point origins for a specified quantity type in the library |
|
A concept to be used to define prefixes for a unit |
|
A concept matching all quantities in the library |
|
A concept matching all external quantities like types |
|
A concept matching all quantities of the provided quantity spec |
|
A concept matching all quantity points in the library |
|
A concept matching all external quantity point like types |
|
A concept matching all quantity points of the provided property |
|
A concept matching all quantity specifications of a provided quantity spec value |
|
A concept matching all references in the library. |
|
A concept matching all references of the provided quantity spec |
|
A concept matching all unit types in the library |
|
Concept to detect whether T is a valid UnitMagnitude. |
|
A concept matching all units associated with the provided quantity spec |