Skip to content

Instantly share code, notes, and snippets.

@migerh
Created December 26, 2013 11:11
Show Gist options
  • Save migerh/8132401 to your computer and use it in GitHub Desktop.
Save migerh/8132401 to your computer and use it in GitHub Desktop.
stack vs heap
vector<myclass> dosomething(vector<myclass>& param) {
vector<myclass> local1, local2;
// do something with local1 and local2 based on param
param = local2;
return local1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment