Skip to main content

Module defer

Module defer 

Source
Expand description

Scope-exit guards for cleanup and temporary state changes.

The macros create local drop guards that run cleanup as control leaves the surrounding scope. They cover arbitrary deferred actions and restoration of a replaced value.