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