"ScopedFunctor" was unclear about its intentions. A scoped thing only
exists within this scope. A functor being scoped doesn't imply that it
is called upon leaving that scope.
"ScopedCleanupFunctor" is more clear. The intention is to call a
function as part of cleanup.
This commit renames ScopedFunctor to ScopedCleanupFunctor.
"ScopedFunctor" was unclear about its intentions. A scoped thing only exists within this scope. A functor being scoped doesn't imply that it is called upon leaving that scope.
"ScopedCleanupFunctor" is more clear. The intention is to call a function as part of cleanup.
This commit renames ScopedFunctor to ScopedCleanupFunctor.