Advertisement
tinyevil

Untitled

Jul 27th, 2018
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.11 KB | None | 0 0
  1. template<class T>
  2. auto at_exit(Fn1&& fn1, Fn2&& fn2) -> fn1(){
  3.     auto val = fn1();
  4.     fn2();
  5.     return val;
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement