ProgramMax / max

max is a tool belt for C++
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Rename ScopedFunctor to ScopedCleanupFunctor #175

Closed ProgramMax closed 2 years ago

ProgramMax commented 2 years ago

"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.