Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
favorited
on Feb 6, 2018
|
parent
|
context
|
favorite
| on:
Scope exit in C++11 (2012)
This is pretty similar to std::lock_guard (and similar RAII types). Except instead of unlocking (or tearing down a resource, etc.) upon destruction, it invokes a lambda.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: