store

Returns a new quantity where the value is stored in a field of type T.

By default, the value is converted to type T using a cast.

store
(
T
Q
)
(,
T delegate
(
Q.valueType
)
convertDelegate = x => cast(T)x
)

Examples

import quantities.si : meter;
auto sizeF = meter.store!float;
static assert(is(sizeF.valueType == float));
auto sizeI = meter.store!ulong;
static assert(is(sizeI.valueType == ulong));

Meta