MCPcopy Create free account
hub / github.com/TankOs/SFGUI / SafeModify

Method SafeModify

extlibs/libELL/include/ell/Utils.h:141–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139 struct SafeModify
140 {
141 SafeModify(T & _var, T value)
142 : var(_var), sav(_var)
143 {
144 var = value;
145 }
146
147 ~SafeModify() { var = sav; }
148

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected