Advertisement
tinyevil

Untitled

Jul 27th, 2018
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. void foo(){
  2.     auto result = {{
  3.         your
  4.         code
  5.         to
  6.         do
  7.         if ( something ) return 1;
  8.         some
  9.         stuff      
  10.         return 42;
  11.     }};
  12.    
  13.     code_at_the_end();
  14.    
  15.     return result;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement