Quotient

Utility templates to manipulate quantity types.

template Quotient (
Q1
Q2
) if (
isQuantity!Q1 &&
isQuantity!Q2
) {}

Members

Aliases

Quotient
alias Quotient = typeof(Q1.init / Q2.init)
Undocumented in source.

Examples

t
{
    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