wrapper of cpp-generator