ftz 0.0.1
Fast, reproducible floating-point arithmetic
Loading...
Searching...
No Matches
ftz::native_fp32_scope::external_scope Struct Referenceexport

Temporarily restores the enclosing region's caller environment for external code. Saves the current numerical state and reinstates it on return or unwind. The enclosing region must outlive this guard; both guards belong to the same thread. More...

Public Member Functions

 external_scope (native_fp32_scope const &region) noexcept
 Saves the current state, then restores region.previous() on the same thread.
 ~external_scope () noexcept
 Restores the numerical state captured by this external-call guard.
 external_scope (external_scope const &)=delete
 Disallows transfer of a guard whose restoration belongs to its constructing thread.
external_scope & operator= (external_scope const &)=delete
 Disallows transfer of a guard whose restoration belongs to its constructing thread.
 external_scope (external_scope &&)=delete
 Disallows transfer of a guard whose restoration belongs to its constructing thread.
external_scope & operator= (external_scope &&)=delete
 Disallows transfer of a guard whose restoration belongs to its constructing thread.

Detailed Description

Temporarily restores the enclosing region's caller environment for external code. Saves the current numerical state and reinstates it on return or unwind. The enclosing region must outlive this guard; both guards belong to the same thread.

Definition at line 90 of file ftz.controls.ccm.


The documentation for this struct was generated from the following file: