[C++] Why does C++ api has not object pooling while JS api has it?

Hello again everyone.

I’m looking for a way for object pooling in C++ api, I’ve implemented a Pool class with generics in C++, while I’m working with other frameworks but since cocos2d-x has some automatic ownership management I’m confused with it.

Then I passed by JS api, and there is a Pool class over there, I’m wondering why C++ api doesn’t has one?

And since I need that functionality, what are the proper steps to implement it in C++ api with cocos’s ownership handling mechanism?

Thank you.