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

Restricts to types supporting division with remainder. More...

Concept definition

template<typename T>
concept HasDivisionWithRemainder = requires(T a, T b) {
{ a / b } -> std::convertible_to<T>;
{ a % b } -> std::convertible_to<T>;
}
Restricts to types supporting division with remainder.
Definition concepts.cpp:333

Detailed Description

Restricts to types supporting division with remainder.

Template Parameters
TA set that supports division with remainder.