Small C++ example