ProjGeom 1.0.11
Loading...
Searching...
No Matches
fun::Integral Concept Reference

Integral concept. More...

#include <common_concepts.h>

Concept definition

template<typename Z>
concept fun::Integral = OrderedRing<Z> && requires(Z a, Z pt_b) {
{ a % pt_b } -> STD_ALT::convertible_to<Z>;
{ a / pt_b } -> STD_ALT::convertible_to<Z>;
{ a %= pt_b } -> STD_ALT::same_as<Z&>;
{ a /= pt_b } -> STD_ALT::same_as<Z&>;
}
Integral concept.
Definition common_concepts.h:84
Ordered ring concept.
Definition common_concepts.h:75

Detailed Description

Integral concept.

An integral domain is an ordered ring with division operation.

Template Parameters
ZAn ordered ring type supporting division and modulo