C++ example: Use template create interface example