Sujet : Re: Opinions on `defer`?
De : Bonita.Montero (at) *nospam* gmail.com (Bonita Montero)
Groupes : comp.lang.cDate : 09. Jan 2025, 08:24:29
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vlntja$38ou9$1@raubtier-asyl.eternal-september.org>
References : 1 2 3
User-Agent : Mozilla Thunderbird
Am 08.01.2025 um 23:39 schrieb Chris M. Thomasson:
Reminds me of ScopeGuard. ;^)
But better than this. If you have multiple changes on a data structure
and the last fails the invoke_on_destruct-s are chained and revert the
changes incrementally.