Skip to content

Neko-Box-Coder/Defer.hpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Defer.hpp

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

Usage

#include "Defer.hpp"
#include <iostream>
int main(int, char**)
{
    DEFER { std::cout << "World!\n"; }; //or defer { ... };
    std::cout << "Hello ";
    return 0;
    
    //Prints: Hello World!
}

About

A light-weight C++11 header only library for specifying actions to be performed at the end of scope.

Topics

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages