A light-weight C++11 header only library for specifying actions to be performed at the end of scope.
Just include Defer.hpp to start using it
#include "Defer.hpp"
#include <iostream>
int main(int, char**)
{
DEFER { std::cout << "World!\n"; }; //or defer { ... };
std::cout << "Hello ";
return 0;
//Prints: Hello World!
}