[Solved] C++ vector v, vector*v, vector vec, which is the fastest (or the most efficient)? [closed]
There is a big misunderstanding here: You are comparing vectors with different semantics. It’s like asking which is faster, a glass of water or a banana. If you think about using a vector of pointers, std::vector<T*>, you need to be aware that you are using manual memory management. It might be faster in some use-cases, … Read more