UE4 how to use template class

I wants to create a general object pool.
Is there a way to replace template class?

What do you want to do exactly?

I want to use template to implement an object pool