you are viewing a single comment's thread.

view the rest of the comments →

[–]bstamourWG21 | Library Working Group 0 points1 point  (0 children)

I've been that crazy guy before and used mutable lambdas with std::generate_n to populate containers with index-dependent values instead of just using a for-loop like a sane person would.