Fact: stable_sort(), stable_partition(), and inplace_merge() are the STL’s allocating algorithms, tolerating out-of-memory with fallbacks.— Stephan T. Lavavej (@StephanTLavavej) December 14, 2015…
Common patterns with <algorithm>
A list of very common patterns with <algorithm>, and how to make them less tedious to write with some supporting libraries.…
How to write a STD-like algorithm
Nice step-by-step tutorial on how to design, implement and test a STD-like algorithm. As usual, getting the right pass-by-something is always tricky.…
How to adapt a non-STL iterator
The solution proposed here will not scale in general, but it is still nice for limited usage scenarios.…
Range-for as a built-in algorithm
Briefly, range-for is the only algorithm C++11 actually wired into the language itself. (Herb Sutter)…