24#ifndef __SCOPED_SET_RESET_H
25#define __SCOPED_SET_RESET_H
45template <
typename VAL_TYPE>
76template <
typename Func>
RAII class that executes a function at construction and another at destruction.
SCOPED_EXECUTION(Func initFunc, Func destroyFunc)
RAII class that sets an value at construction and resets it to the original value at destruction.
~SCOPED_SET_RESET()
Destruct the class, and return the target to its original value.
SCOPED_SET_RESET(VAL_TYPE &target, VAL_TYPE value)