A quantity
Synopsis
Declared in <mp‐units/framework/quantity.h>
template<
    Reference auto R,
    RepresentationOf<get_quantity_spec®> Rep>
class quantity;Types
| Name | 
Member Functions
| Name | Description | 
| 
 | Constructors | 
| 
 | Destructor | 
| Assignment operators | |
| Modulus assignment operator | |
| Multiplication assignment operators | |
| Increment operators | |
| Addition assignment operator | |
| Decrement operators | |
| Subtraction assignment operator | |
| Division assignment operators | |
| Conversion operators | 
Data Members
| Name | Description | 
| 
 | needs to be public for a structural type | 
Static Data Members
Friends
| Name | Description | 
| Three‐way comparison operator | |
| Three‐way comparison operator | |
| Equality operator | |
| Equality operator | |
Non-Member Functions
| Name | Description | 
| Computes the absolute value of a quantity | |
| Computes the cubic root of a quantity | |
| Computes the smallest quantity with integer representation and unit type To with its number not less than q | |
| 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 fma of 3 quantities | |
| Computes the fma of 2 quantities and a quantity point | |
| Computes the floating‐point remainder of the division operation x / y. | |
| Computes the square root of the sum of the squares of x, y, and z, without undue overflow or underflow at intermediate stages of the computation | |
| Computes the square root of the sum of the squares of x and y, without undue overflow or underflow at intermediate stages of the computation | |
| Computes the inverse of a quantity in a provided unit | |
| Determines if a quantity is finite. | |
| Determines if a quantity is infinite. | |
| Determines if a quantity is a nan. | |
| Multiplication operator | |
| Computes the value of a quantity raised to the  | |
| 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 root of a quantity | |
| Explicit cast of a quantity's representation type | 
Description
Property of a phenomenon, body, or substance, where the property has a magnitude that can be expressed by means of a number and a reference.
Template Parameters
| Name | Description | 
| R | a reference of the quantity providing all information about quantity properties | 
| Rep | a type to be used to represent values of a quantity | 
Created with MrDocs