QVariant.isConsistentWith

Tests wheter this quantity has the same dimensions as another one.

struct QVariant(N)
const
bool
isConsistentWith
(
Q
)
(
auto ref const Q qty
)

Examples

auto second = unit!double("T");
auto minute = 60 * second;
auto meter = unit!double("L");

assert(minute.isConsistentWith(second));
assert(!meter.isConsistentWith(second));

Meta