[#mp_units-operator_slash-0a8] = xref:mp_units.adoc[mp_units]::operator/ :relfileprefix: ../ :mrdocs: Division operators == Synopses Declared in `<mp‐units/framework/reference.h>` Division operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr xref:mp_units/safe_int-09.adoc[safe_int</* implementation-defined */, ErrorPolicy>] xref:mp_units/operator_slash-05.adoc[operator/]( U lhs, xref:mp_units/safe_int-09.adoc[safe_int] rhs); ---- [.small]#xref:mp_units/operator_slash-05.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr auto xref:mp_units/operator_slash-0f4.adoc[operator/]( U lhs, xref:mp_units/safe_int-09.adoc[safe_int] rhs) requires requires { lhs / static_cast<U>(rhs.value_); }; ---- [.small]#xref:mp_units/operator_slash-0f4.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] consteval /* implementation-defined */ xref:mp_units/operator_slash-0d6.adoc[operator/]( U1 lhs, xref:mp_units/reference.adoc[reference] rhs); ---- [.small]#xref:mp_units/operator_slash-0d6.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] consteval /* implementation-defined */ xref:mp_units/operator_slash-0e7.adoc[operator/]( xref:mp_units/reference.adoc[reference] lhs, U2 rhs); ---- [.small]#xref:mp_units/operator_slash-0e7.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] consteval /* implementation-defined */ xref:mp_units/operator_slash-0d3.adoc[operator/]( xref:mp_units/reference.adoc[reference] lhs, xref:mp_units/reference.adoc[reference<Q2, U2>] rhs); ---- [.small]#xref:mp_units/operator_slash-0d3.adoc[_» more..._]# Division operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr xref:mp_units/safe_int-09.adoc[safe_int</* implementation-defined */, ErrorPolicy>] xref:mp_units/operator_slash-0b2.adoc[operator/]( xref:mp_units/safe_int-09.adoc[safe_int] lhs, U rhs); ---- [.small]#xref:mp_units/operator_slash-0b2.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr auto xref:mp_units/operator_slash-0fb.adoc[operator/]( xref:mp_units/safe_int-09.adoc[safe_int] lhs, U rhs) requires requires { static_cast<U>(lhs.value_) / rhs; }; ---- [.small]#xref:mp_units/operator_slash-0fb.adoc[_» more..._]# Division operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr xref:mp_units/safe_int-09.adoc[safe_int</* implementation-defined */, ErrorPolicy>] xref:mp_units/operator_slash-0f1.adoc[operator/]( xref:mp_units/safe_int-09.adoc[safe_int] lhs, xref:mp_units/safe_int-09.adoc[safe_int] rhs); ---- [.small]#xref:mp_units/operator_slash-0f1.adoc[_» more..._]# Division operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr xref:mp_units/safe_int-09.adoc[safe_int</* implementation-defined */, ErrorPolicy>] xref:mp_units/operator_slash-09.adoc[operator/]( xref:mp_units/safe_int-09.adoc[safe_int] lhs, xref:mp_units/constrained.adoc[constrained<U, CP>] rhs); ---- [.small]#xref:mp_units/operator_slash-09.adoc[_» more..._]# Division operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr xref:mp_units/constrained.adoc[constrained<decltype(std::declval<T>() / std::declval<U>()), CP>] xref:mp_units/operator_slash-0e1.adoc[operator/]( xref:mp_units/safe_int-09.adoc[safe_int] lhs, xref:mp_units/constrained.adoc[constrained<U, CP>] const& rhs); ---- [.small]#xref:mp_units/operator_slash-0e1.adoc[_» more..._]# Division operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr xref:mp_units/safe_int-09.adoc[safe_int</* implementation-defined */, ErrorPolicy>] xref:mp_units/operator_slash-01.adoc[operator/]( xref:mp_units/constrained.adoc[constrained<U, CP>] lhs, xref:mp_units/safe_int-09.adoc[safe_int] rhs); ---- [.small]#xref:mp_units/operator_slash-01.adoc[_» more..._]# Division operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr xref:mp_units/constrained.adoc[constrained<decltype(std::declval<U>() / std::declval<T>()), CP>] xref:mp_units/operator_slash-0a5.adoc[operator/]( xref:mp_units/constrained.adoc[constrained<U, CP>] const& lhs, xref:mp_units/safe_int-09.adoc[safe_int] rhs); ---- [.small]#xref:mp_units/operator_slash-0a5.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< xref:mp_units/Reference.adoc[Reference] R, typename Q> requires Quantity<std::remove_cvref_t<Q>> constexpr auto xref:mp_units/operator_slash-0c.adoc[operator/]( R lhs, Q&& q) = delete; ---- [.small]#xref:mp_units/operator_slash-0c.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< xref:mp_units/Reference.adoc[Reference] R, typename Rep> requires RepresentationOf<std::remove_cvref_t<Rep>, get_quantity_spec(R{})> constexpr auto xref:mp_units/operator_slash-0bf.adoc[operator/]( R lhs, Rep&& rhs) = delete; ---- [.small]#xref:mp_units/operator_slash-0bf.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename FwdQ, xref:mp_units/Reference.adoc[Reference] R, xref:mp_units/Quantity.adoc[Quantity] Q = std::remove_cvref_t<FwdQ>> [[nodiscard]] constexpr xref:mp_units/Quantity.adoc[Quantity] auto xref:mp_units/operator_slash-08.adoc[operator/]( FwdQ&& q, R rhs); ---- [.small]#xref:mp_units/operator_slash-08.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename FwdRep, xref:mp_units/Reference.adoc[Reference] R, xref:mp_units/RepresentationOf.adoc[RepresentationOf<get_quantity_spec(R{})>] Rep = std::remove_cvref_t<FwdRep>> requires (!detail::OffsetUnit<decltype(get_unit(R{}))>) [[nodiscard]] constexpr xref:mp_units/Quantity.adoc[Quantity] auto xref:mp_units/operator_slash-03.adoc[operator/]( FwdRep&& lhs, R rhs); ---- [.small]#xref:mp_units/operator_slash-03.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename FwdRep, xref:mp_units/Reference.adoc[Reference] R, xref:mp_units/RepresentationOf.adoc[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 xref:mp_units/operator_slash-06.adoc[operator/]( FwdRep&& lhs, R rhs); ---- [.small]#xref:mp_units/operator_slash-06.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#