Checks whether a quantity of quantity spec From can be implicitly converted to quantity spec To
Declared in <mp-units/framework/quantity_spec_concepts.h>
template<
QuantitySpec From,
QuantitySpec To>
[[nodiscard]]
consteval
bool
implicitly_convertible(
From from,
To to);
true if from is implicitly convertible to to
The return value should not be discarded.
| Name | Description |
|---|---|
| From | source quantity specification type |
| To | target quantity specification type |
| Name | Description |
|---|---|
| from | source quantity specification value |
| to | target quantity specification value |