In C++, I want to create an object pool thats replicated and only affects the clients performance

Basically title.

I have a rough idea of how to do it, but im still pretty new to C++.

Would like a little push in how to approach this. Thanks in advance