Skip to content

Instantly share code, notes, and snippets.

@chrisdembia
Created June 16, 2015 23:52
Show Gist options
  • Select an option

  • Save chrisdembia/e51efac57f09f19a758b to your computer and use it in GitHub Desktop.

Select an option

Save chrisdembia/e51efac57f09f19a758b to your computer and use it in GitHub Desktop.

Revisions

  1. chrisdembia created this gist Jun 16, 2015.
    7 changes: 7 additions & 0 deletions make-set.cpp
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    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());
    }
    }