Unit Conversion and Dimensional Analysis Library  2.3.0
A compile-time c++14 unit conversion library
units::literals Namespace Reference

namespace for unit literal definitions of all categories. More...

Detailed Description

namespace for unit literal definitions of all categories.

Literals allow for declaring unit types using suffix values. For example, a type of meter_t(6.2) could be declared as 6.2_m. All literals use an underscore followed by the abbreviation for the unit. To enable literal syntax in your code, include the statement using namespace units::literals.

See also
See unit_t for more information on unit type containers.