Skip to content

mp_units::QuantityOf

A concept matching all quantities of the provided quantity spec

Synopsis

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

template<typename Q, auto QS>
concept QuantityOf =
  Quantity<Q> && QuantitySpec<MP_UNITS_NTTP_TYPE(QS)> && ReferenceOf<MP_UNITS_NONCONST_TYPE(Q::reference), QS>;

Description

Satisfied by all quantities with the reference satisfying ReferenceOf<QS>.