Hacker News new | past | comments | ask | show | jobs | submit login

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: