Advertisement
tinyevil

Untitled

May 17th, 2018
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. void foo(vector<int> x){
  2.  
  3. // you can't discard x
  4. // you must consume it explicitly
  5. destroy(x);
  6. }
  7.  
  8. void foo(int x){
  9.  
  10. // you can discard x
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement