Checks whether two quantity specifications are convertible to each other in both directions
Declared in <mp-units/framework/quantity_spec_conversion.h>
template<
QuantitySpec QS1,
QuantitySpec QS2>
[[nodiscard]]
consteval
bool
interconvertible(
QS1 qs1,
QS2 qs2);
true if qs1 is implicitly convertible to qs2 and qs2 is implicitly convertible to qs1
The return value should not be discarded.
| Name | Description |
|---|---|
| QS1 | first quantity specification type |
| QS2 | second quantity specification type |
| Name | Description |
|---|---|
| qs1 | first quantity specification value |
| qs2 | second quantity specification value |