|
Phyth v0.1.0
A dimensional safe C++ header-only mechanics and electromagnetics simulation library.
|
std::common_type specialization for Quantity More...

std::common_type specialization for Quantity
Allows mixing Quantity types in templates that use common_type. Prefers the left operand's unit as the common type.
| U1 | Unit type of the first Quantity |
| U2 | Unit type of the second Quantity |
Example: std::common_type_t<Quantity<Meter>, Quantity<Centimeter>> // -> Quantity<Meter>
Definition at line 783 of file Quantity.hpp.