mp_units::dimension_one¶
The dimension in which every base dimension has the exponent zero
Synopsis¶
Declared in <mp-units/framework/dimension.h>
struct dimension_one final
Description¶
It is the dimension of dimensionless and of every quantity defined from it. Such a quantity may appear as a count or be created as a ratio of two quantities of the same dimension:
// a screen 527 mm wide and 296 mm high
quantity aspect_ratio = isq::width(527. * mm) / isq::height(296. * mm);
constexpr bool is_ratio = aspect_ratio.dimension == dimension_one; // true
Non-Member Functions¶
| Name | Description |
|---|---|
cbrt | |
inverse | |
operator* | scaled_unit specializations have priority in this operation. This means that the library framework prevents passing it as an element to the derived_unit. In such case only the reference unit is passed to the derived unit and the magnitude remains outside forming another scaled unit as a result of the operation. |
operator/ | scaled_unit specializations have priority in this operation. This means that the library framework prevents passing it as an element to the derived_unit. In such case only the reference unit is passed to the derived unit and the magnitude remains outside forming another scaled unit as a result of the operation. |
operator<< | Stream insertion operator |
operator== | Equality operator |
pow | |
pow | |
sqrt |
See Also¶
- Dimensionless Quantities in the User's Guide