Created
June 16, 2015 23:52
-
-
Save chrisdembia/e51efac57f09f19a758b to your computer and use it in GitHub Desktop.
make-set
This file contains hidden or 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
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