Skip to content

Instantly share code, notes, and snippets.

@chrisdembia
Created June 16, 2015 23:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisdembia/e51efac57f09f19a758b to your computer and use it in GitHub Desktop.
Save chrisdembia/e51efac57f09f19a758b to your computer and use it in GitHub Desktop.
make-set
template<IN, OUT, OUTSET> static OUT generateSet(const IN& input) {
OUTSET output(input.getSize());
for (int i = 0; i < input.getSize(); ++i) {
output[i] = OUT();
output[i].setName(input[i].getName());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment