Created
December 26, 2013 11:11
-
-
Save migerh/8132401 to your computer and use it in GitHub Desktop.
stack vs heap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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