Skip to content

About

A RAII style helper for invoking functions begin and end of scope

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

scope_helper

A RAII style helper for invoking functions begin and end of scope

Usage

#include <iostream>
#include "scope_helper.hpp"

int main()
{
    auto sh{make_scope_helper([]{ std::cout << "begin main()\n"; }, []{ std::cout << "end main()\n"; })};
    //...
    //...
    //...
}

About

A RAII style helper for invoking functions begin and end of scope

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages