|
noexcept |
A helper function that calculates a multiplicative inversion of a given value of a given type and writes result to the same location as the input value.
T | is a type of an object to be multiplicatively inverted. It can be either one of the built-in arithmetic type (for which std::is_arithmetic<T>::value is true), or a type supplied by a user. |
x | is an object to be inverted in-place. |
x
.If std::is_arithmetic<T>::value is true, the call is equivalent to
, and, if this expression is ill-formed, the call is also ill-formed.
Otherwise, if std::is_arithmetic<T>::value is false, the type T
is supposed to be implemented by a user-supplied class or structure providing inverting method
so that the call
is valid. Otherwise, the program is ill-formed.