A concept matching all quantity specifications of a provided quantity spec value

Synopsis

Declared in <mp‐units/framework/quantity_spec_concepts.h>

template<
    typename T,
    auto QS>
concept QuantitySpecOf = QuantitySpec<T> && QuantitySpec<MP_UNITS_REMOVE_CONST(decltype(QS))> && (mp_units::implicitly_convertible(T{}, QS));

Description

Satisfied by all quantity specifications that are implicitly convertible to the provided QS value.

Created with MrDocs