Dedekind 0.0.0
A structuralist C++23 Module Library
Loading...
Searching...
No Matches
dedekind::numbers::RejectsNonFinite Concept Referenceexport

The rejection contract a saturating backing must offer ℚ's tripwire: is_finite(i), found by ADL, says whether i is a point of ℤ or a sentinel (±ℵ_0 / NaZ). Rational rejects a non-finite value wherever one can arise (construction, comparison); a saturating carrier without this hook would clamp silently and is not admitted as a backing (see FractionBacking). More...

Concept definition

template<typename I>
concept dedekind::numbers::RejectsNonFinite = requires(const I& i) {
{ is_finite(i) } -> std::same_as<bool>;
}
The rejection contract a saturating backing must offer ℚ's tripwire: is_finite(i),...
Definition rational.cppm:91
constexpr bool is_finite(const SignedCardinality &v) noexcept
Is this signed cardinal a FINITE ℤ value (not ±ℵ_0 / NaZ)? The public query behind Honest-Rejection g...
Definition cardinality.cppm:947

Detailed Description

The rejection contract a saturating backing must offer ℚ's tripwire: is_finite(i), found by ADL, says whether i is a point of ℤ or a sentinel (±ℵ_0 / NaZ). Rational rejects a non-finite value wherever one can arise (construction, comparison); a saturating carrier without this hook would clamp silently and is not admitted as a backing (see FractionBacking).

Template Parameters
Ithe integer carrier.