Usefull C++ code snippets.