Skip to content

mp_units::operator*

Multiplication operators

Synopses

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

[[nodiscard]] consteval /* implementation-defined */ operator*(U1 lhs, reference rhs);

» more...

[[nodiscard]] consteval /* implementation-defined */ operator*(reference lhs, U2 rhs);

» more...

[[nodiscard]] consteval /* implementation-defined */ operator*(reference lhs, reference<Q2, U2> rhs);

» more...

template<Reference R, typename Q>
  requires Quantity<std::remove_cvref_t<Q>>
constexpr auto operator*(R lhs, Q&& q) = delete;

» more...

template<Reference R, typename Rep>
  requires RepresentationOf<std::remove_cvref_t<Rep>, get_quantity_spec(R{})>
constexpr auto operator*(R lhs, Rep && rhs) = delete;

» more...

template<typename FwdQ, Reference R, Quantity Q = std::remove_cvref_t<FwdQ>>
[[nodiscard]] constexpr Quantity auto operator*(FwdQ&& q, R rhs);

» more...

Multiplication operator

template<typename FwdRep, Reference R, RepresentationOf<get_quantity_spec(R{})> Rep = std::remove_cvref_t<FwdRep>>
  requires(!detail::OffsetUnit<decltype(get_unit(R{}))>)
[[nodiscard]] constexpr quantity<R{}, Rep> operator*(FwdRep && lhs, R r);

» more...

template<typename FwdRep, Reference R, RepresentationOf<get_quantity_spec(R{})> Rep = std::remove_cvref_t<FwdRep>>
  requires detail::OffsetUnit<decltype(get_unit(R{}))>
[[deprecated(
  "2.3.0: References using offset units (e.g., temperatures) should be constructed with the `delta` or `point` helpers")]] constexpr auto
operator*(FwdRep && lhs, R r);

» more...