Skip to content

type_template unit_binary_op

kwikius edited this page Jul 28, 2020 · 9 revisions

| Home | Concepts | Types |

Description

expression template 1 used to compose units for output using * and / operators.

Example:

  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

Notes

Clone this wiki locally