Hacker News new | ask | show | jobs
by leetNightshade 3706 days ago
Another name for this style of wrapper, with some extra functionality, is known as a Scope Guard. Wiki page: https://en.wikibooks.org/wiki/More_C%2B%2B_Idioms/Scope_Guar... Clean implementation: http://stackoverflow.com/a/28413370