Download

Difference between TArray Push and Add() ?

What’s the difference between these two? And how to know when to use which one?

Push() will make a call to inlined Add(), Add() will call Emplace();
The difference is Push() doesn’t return any index after object is placed, it’s void.