Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void foo(vector<int> x){
- // you can't discard x
- // you must consume it explicitly
- destroy(x);
- }
- void foo(int x){
- // you can discard x
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement