Snippets of C++ code