How to implement a stateful meta-container in C++ | Hacker News Reader