NTLib - Number Theory Library 0.9
Loading...
Searching...
No Matches
ntlib::HasMultiplicativeInverses Concept Referenceexport
module base

Restricts to types with multiplicative inverse elements. More...

Concept definition

template<typename T>
concept HasMultiplicativeInverses = requires(T a, T b) {
// Require that `operator/(T,T)` is overloaded.
{ a / b } -> std::convertible_to<T>;
}
Restricts to types with multiplicative inverse elements.
Definition concepts.cpp:212

Detailed Description

Restricts to types with multiplicative inverse elements.

Note
The least restrictive (multiplicative) concept in NTLib requiring multiplicative inverse elements is MultiplicativeGroup. Therefore, the following can be assumed to hold:
  • The multiplicative inverse elements are unique.
  • The unique multiplicative inverse elements are left- and right-inverse.
Template Parameters
TA set with an inner multiplication operation.