quantities.compiletime.quantity

This module quantities that are checked at compile-time for dimensional consistency.

Members

Functions

abs
Q abs(Q quantity)
cbrt
auto cbrt(Q quantity)
cubic
auto cubic(Q quantity)
nthRoot
auto nthRoot(Q quantity)
pow
auto pow(Q quantity)
sqrt
auto sqrt(Q quantity)

Basic math functions that work with Quantity.

square
auto square(Q quantity)

Basic math functions that work with Quantity.

unit
auto unit()

Creates a new monodimensional unit as a QVariant

Structs

Quantity
struct Quantity(N, alias unitSpec)

A quantity checked at compile-time for dimensional consistency.

Templates

isQuantity
template isQuantity(T)

Tests whether T is a quantity type

Meta

Authors

Nicolas Sicard