Skip to content

mp_units::DimensionOf

A concept matching a dimension equal to a given one

Synopsis

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

template<typename T, auto D>
concept DimensionOf =
  Dimension<T> && Dimension<decltype(D)> && (T{} == D);

Warning

Deprecated: 2.6.0: Compare the dimensions with `==` instead. Use of this entity is allowed but discouraged.