How do i replicate a non-actor class?

Hello, i’m trying to replicate a data structure of my own that uses TArray and c++ templates. How can accomplish this? Thanks