How to write a standard-like algorithm in C++ | Dark Hacker News