Inverse

Utility templates to manipulate Quantity types.

template Inverse (
Q
) if (
isQuantity!Q
) {}

Members

Aliases

Inverse
alias Inverse = typeof(1 / Q.init)
Undocumented in source.

Examples

import quantities.si;

static assert(is(Inverse!Time == Frequency));
static assert(is(Product!(Power, Time) == Energy));
static assert(is(Quotient!(Length, Time) == Speed));
static assert(is(Square!Length == Area));
static assert(is(Cubic!Length == Volume));
static assert(AreConsistent!(Product!(Inverse!Time, Length), Speed));

Meta