api_generator:c++: support singleton