prefix

Creates a new prefix function that multiplies a QVariant by a factor.

template prefix(alias fact)
prefix
(
Q
)
(
auto ref const Q base
)

Members

Aliases

N
alias N = typeof(fact)
Undocumented in source.

Functions

prefix
auto prefix(Q base)

The prefix function

Manifest constants

factor
enum factor;

The prefix factor

Examples

auto meter = unit!double("L");
alias milli = prefix!1e-3;
assert(milli(meter) == 1e-3 * meter);

Meta