Hacker News new | ask | show | jobs
by dzorz 5493 days ago
next_permutation is in standard library (header algorithm).
1 comments

For the curious, STL <algorithm> is one of those things that you wish you knew ages ago. Usually my code is much cleaner after I run through it and replace relevant parts of it with STL stuff.

http://www.cplusplus.com/reference/algorithm/