Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active April 27, 2018 07:38
Embed
What would you like to do?
std::vector<MyClass> xs;
std::generate_n(std::back_inserter(xs), n, MyClass::constructThisWay);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment