\
template <ImmutableQuantityConcept QuantityType, \
StandardArithmeticTypeConcept ScalarType> \
[[nodiscard]] TFEL_HOST_DEVICE constexpr auto operator Op( \
const QuantityType& lhs, \
const ScalarType& \
rhs) noexcept requires(NoUnitImmutableQuantityConcept<QuantityType>) { \
base_type<QuantityType>, ScalarType>::type>{ \
base_type_cast(lhs) Op rhs}; \
} \
\
template <StandardArithmeticTypeConcept ScalarType, \
ImmutableQuantityConcept QuantityType> \
[[nodiscard]] TFEL_HOST_DEVICE constexpr auto operator Op( \
const ScalarType& lhs, \
const QuantityType& \
rhs) noexcept requires(NoUnitImmutableQuantityConcept<QuantityType>) { \
return qt<unit::NoUnit, typename tfel::typetraits::Promote< \
base_type<QuantityType>, ScalarType>::type>{ \
}
TFEL_HOST_DEVICE constexpr decltype(auto) base_type_cast(const Quantity< UnitType, ValueType, OwnershipPolicy > &v) noexcept
cast the value to the base type
Definition qt.hxx:531