Skip to content

mp_units::operator/

Division operator

Synopsis

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

template<typename FwdRep, Reference R,
         RepresentationOf<get_quantity_spec(R{})> Rep = std::remove_cvref_t<FwdRep>>
  requires 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 rhs);

Warning

Deprecated: 2.3.0: References using offset units (e.g., temperatures) should be constructed with the `delta` or `point` helpers. Use of this entity is allowed but discouraged.

Note

This function is a hidden friend of one, declared inside an implementation-defined base class: it can be found only through argument-dependent lookup.

Parameters

NameDescription
lhsThe left operand
rhsThe right operand