Simple object for writing RAII-like scoped states (see example). More...
Public Member Functions | |
ScopedState (Ref< TState > store, TState scopedState) | |
Ctor. | |
void | Dispose () |
Cleanup - restore the flag's original value. | |
Simple object for writing RAII-like scoped states (see example).
TState | Must be a value type. |
TState | : | struct |
ScopedState | ( | Ref< TState > | store, |
TState | scopedState ) |
Ctor.
store | Reference to the value type that contains the flag to be altered in the scope. |
scopedState | State the flag should assume inside the scope. |
We use cookies to improve your experience. By using this documentation, you agree to our use of cookies.