Parma Polyhedra Library requirements
C++ checked special-value factories
PPL-SPEC-000916
1. Checked typed special-value factory results PPL-SPEC-000916

Let N be an admitted Checked_Number<T, Policy> marker-construction instantiation from 🔗 1. Checked special-marker construction and policy assignment. plus_infinity<N>(), minus_infinity<N>() and not_a_number<N>() shall construct and return an independently owned N from, respectively, PLUS_INFINITY, MINUS_INFINITY and NOT_A_NUMBER. The return type shall be exactly N. Admission shall require that the corresponding typed marker can implicitly construct N; these factory instantiations shall have the same scalar availability and policy capability conditions as that constructor.

Each call shall use Policy::ROUND_DEFAULT_CONSTRUCTOR and deliver the marker-construction Result exactly once to Policy::handle_result. No operator/function rounding default, additional conversion or return-copy handler decision shall be required. Copy elision shall not affect this count. Special payloads, finite fallback endpoints, unsupported-result meaning and valid reuse shall follow 🔗 1. Checked special-marker construction and policy assignment and its underlying marker contracts. A returned object after handler acceptance shall remain live, assignable and destructible; acceptance alone shall not promise a represented answer for an unsupported construction.

A handler exception shall propagate, and no result object shall be delivered. Normal cleanup shall preserve the owned-storage guarantees in 🔗 1. Same-type checked copying of admitted special values. Exception classification supplied by Extended_Number_Policy::handle_result shall retain 🔗 8. Exception classification of numerical result codes; an available NaN representation shall not prevent a policy from rejecting its construction result.

No existing numeric object shall be modified. The typed marker objects shall remain unchanged. Resource, scalar/policy, synchronization and backend conditions shall follow the corresponding marker constructor. No extra library initialization or coefficient-constant stage shall be required.