[#mp_units-quantity-01-operator_slash_eq-04] = xref:mp_units.adoc[mp_units]::xref:mp_units/quantity-01.adoc[quantity]::operator/= :relfileprefix: ../../ :mrdocs: Division assignment operators == Synopses Declared in `<mp‐units/framework/quantity.h>` Divides `*this` by a dimensionless quantity and assigns the result to `*this`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template</* implementation-defined */ Q2> requires detail::ScalarRepConvertible<typename Q2::rep, rep> && requires(rep& a, const Q2::rep b) { { a /= b } ‐> std::same_as<rep&>; } constexpr xref:mp_units/quantity-01.adoc[quantity]& xref:mp_units/quantity-01/operator_slash_eq-033.adoc[operator/=](Q2 const& rhs) &; ---- [.small]#xref:mp_units/quantity-01/operator_slash_eq-033.adoc[_» more..._]# Divides `*this` by a scalar value and assigns the result to `*this`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template</* implementation-defined */ Value> requires requires(rep& a, const Value b) { { a /= b } ‐> std::same_as<rep&>; } constexpr xref:mp_units/quantity-01.adoc[quantity]& xref:mp_units/quantity-01/operator_slash_eq-036.adoc[operator/=](Value const& val) &; ---- [.small]#xref:mp_units/quantity-01/operator_slash_eq-036.adoc[_» more..._]# == Return Value `*this` == Parameters [cols="1,4"] |=== | Name| Description | *rhs* | the dimensionless quantity to divide by | *val* | the scalar value to divide by |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#