Cpp snippets