-
Notifications
You must be signed in to change notification settings - Fork 1
type_template unit_binary_op
kwikius edited this page Jul 28, 2020
·
9 revisions
expression template 1 used to compose units for output using *
and /
operators.
basic_quantity<
decltype( si::mass_unit::g() * si::area_unit::mm2() / si::time_unit::min() ),
double
> Q{123.45};
output<charset_utf8>(std::cout,Q) <<'\n';
sample output :123.45 g⋅mm²⁄min