Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template<class T>
- auto at_exit(Fn1&& fn1, Fn2&& fn2) -> fn1(){
- auto val = fn1();
- fn2();
- return val;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement