Merge branch 'master' of github.com:mpusz/mp-units
This commit is contained in:
commit
a9b2865950
26 files changed
+269
-91
No files matched your search
@@ -165,12 +165,8 @@ A `Reference` can either be:
|
||||
|
||||
### `ReferenceOf<T, V>` { #ReferenceOf }
|
||||
|
||||
`ReferenceOf` concept is satisfied by references `T` that match the following value `V`:
|
||||
|
||||
| `V` | Condition |
|
||||
|----------------|-----------------------------------------------------------------------------------------------|
|
||||
| `Dimension` | The dimension of a quantity specification satisfies [`DimensionOf<V>`](#DimensionOf) concept. |
|
||||
| `QuantitySpec` | The quantity specification satisfies [`QuantitySpecOf<V>`](#QuantitySpecOf) concept. |
|
||||
`ReferenceOf` concept is satisfied by references `T` which have a quantity specification that satisfies
|
||||
[`QuantitySpecOf<V>`](#QuantitySpecOf) concept. |
|
||||
|
||||
|
||||
## `Representation<T>` { #Representation }
|
||||
@@ -212,7 +208,7 @@ satisfied by all types being or deriving from an instantiation of a `quantity` c
|
||||
|
||||
### `QuantityOf<T, V>` { #QuantityOf }
|
||||
|
||||
`QuantityOf` concept is satisfied by all the quantities for which a [`ReferenceOf<V>`](#ReferenceOf)
|
||||
`QuantityOf` concept is satisfied by all the quantities for which a [`QuantitySpecOf<V>`](#QuantitySpecOf)
|
||||
is `true`.
|
||||
|
||||
|
||||
@@ -259,10 +255,10 @@ class template.
|
||||
|
||||
`QuantityPointOf` concept is satisfied by all the quantity points `T` that match the following value `V`:
|
||||
|
||||
| `V` | Condition |
|
||||
|---------------|----------------------------------------------------------------------------------|
|
||||
| `Reference` | The quantity point reference satisfies [`ReferenceOf<V>`](#ReferenceOf) concept. |
|
||||
| `PointOrigin` | The _point_ and `V` have the same absolute point origin. |
|
||||
| `V` | Condition |
|
||||
|----------------|-----------------------------------------------------------------------------------------------------|
|
||||
| `QuantitySpec` | The quantity point quantity specification satisfies [`QuantitySpecOf<V>`](#QuantitySpecOf) concept. |
|
||||
| `PointOrigin` | The _point_ and `V` have the same absolute point origin. |
|
||||
|
||||
|
||||
## `QuantityLike<T>` { #QuantityLike }
|
||||
|
||||
@@ -160,6 +160,8 @@ with dimensionless quantities:
|
||||
```cpp
|
||||
inline constexpr struct percent : named_unit<"%", mag<ratio{1, 100}> * one> {} percent;
|
||||
inline constexpr struct per_mille : named_unit<basic_symbol_text{"‰", "%o"}, mag<ratio(1, 1000)> * one> {} per_mille;
|
||||
inline constexpr struct parts_per_million : named_unit<"ppm", mag<ratio(1, 1'000'000)> * one> {} parts_per_million;
|
||||
inline constexpr auto ppm = parts_per_million;
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -337,13 +337,13 @@ Among others, we can find there the following:
|
||||
- `exp()`,
|
||||
- `abs()`,
|
||||
- `epsilon()`,
|
||||
- `fma()`,
|
||||
- `fma()`, `fmod()`,
|
||||
- `isfinite()`, `isinf()`, `isnan()`,
|
||||
- `floor()`, `ceil()`, `round()`,
|
||||
- `inverse()`,
|
||||
- `hypot()`,
|
||||
- `sin()`, `cos()`, `tan()`,
|
||||
- `asin()`, `acos()`, `atan()`.
|
||||
- `asin()`, `acos()`, `atan()`, `atan2()`.
|
||||
|
||||
In the library, we can also find _mp-units/random.h_ header file with all the pseudo-random number
|
||||
generators working on quantity types.
|
||||
Reference in new issue
Block a user