xo-unit: + quantity.reciprocal()
This commit is contained in:
parent
cf65def417
commit
f49cce98b9
1 changed files with 7 additions and 1 deletions
|
|
@ -43,7 +43,13 @@ namespace xo {
|
|||
|
||||
// unit_qty
|
||||
// zero_qty
|
||||
// reciprocal
|
||||
|
||||
constexpr
|
||||
auto reciprocal() const {
|
||||
return quantity<s_unit.reciprocal(),
|
||||
repr_type,
|
||||
ratio_int2x_type>(1.0 / scale_);
|
||||
}
|
||||
|
||||
template <typename Repr2>
|
||||
constexpr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue