Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C++] Add RAII util (defer) to auto cleanup / close resources after exiting the scope #369

Merged
merged 4 commits into from
Dec 12, 2022

Conversation

eddyxu
Copy link
Contributor

@eddyxu eddyxu commented Dec 12, 2022

Modeled after Golang's defer and Google's abseil::Cleanup.

@eddyxu eddyxu added the c++ C++ issues label Dec 12, 2022
@eddyxu eddyxu requested a review from changhiskhan December 12, 2022 07:59
@eddyxu eddyxu self-assigned this Dec 12, 2022
@eddyxu eddyxu merged commit 26251b3 into main Dec 12, 2022
@eddyxu eddyxu deleted the lei/defer_util branch December 12, 2022 22:27
eddyxu added a commit that referenced this pull request Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ C++ issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants