TArray to std::vector

I have a 3rd party library I want to use for some very complicated math. My unreal code is using TArray to store the relevant data. The library uses std::vector.

Is there an easy way to just convert the data in TArray to std::vector in place?

Hello! TArray has GetData() method that is returning pointer to raw data array. You can just use that. For example, fast way to copy data from one FColor array to another (thay should have same size) can be done like that

FMemory::Memcpy(ArrayA.GetData(), ArrayB.GetData(), ArrayA.Num() * sizeof(FColor));

this is not copying to a vector but to another array