Returns the common quantity specification of two quantity specifications
Synopsis
Declared in <mp‐units/framework/quantity_spec_conversion.h>
template<
QuantitySpec Q1,
QuantitySpec Q2>
requires (detail::have_common_quantity_spec(Q1{}, Q2{}))
[[nodiscard]]
consteval
QuantitySpec auto
get_common_quantity_spec(
Q1 q1,
Q2 q2);
Return Value
the strongest quantity specification that both arguments are convertible to
|
Note
|
The return value should not be discarded. |
Template Parameters
Name |
Description |
Q1 |
first quantity specification type |
Q2 |
second quantity specification type |
Parameters
Name |
Description |
q1 |
first quantity specification value |
q2 |
second quantity specification value |
Created with MrDocs