mp_units::inverse

Computes the inverse of a dimension.

Synopsis

Declared in <mp-units/framework/dimension.h>

[[nodiscard]]
consteval
Unit auto
inverse(auto d);

Return Value

dimension_one / d

NOTE

The return value should not be discarded.

Parameters

NameDescription
dthe dimension to invert