Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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