Lightweight C++ snippets