Skip to content

mp_units::usc

The United States customary system of units

Description

Extends yard_pound with units specific to the United States, such as the US gallon and the barrel.

using usc::unit_symbols::gal;

quantity volume = 1. * gal;
quantity in_litres = volume.in(L);  // 3.78541 L

Namespaces

NameDescription
survey1893 The units of length based on the US survey foot

Types

Functions

NameDescription
operator+ Addition operators
operator- Subtraction operators

Variables

Using Namespace Directives

NameDescription
yard_pound Units of the international yard and pound of 1959, and related units

See Also