Posts by João Augusto • 121 points
1 post
-
2
votes2
answers1354
viewsA: In which situations should I dynamically allocate a vector to C++?
In certain cases it may be advantageous/necessary to dynamically create the vector: Situation 1: You have a multithreaded process and you have a heap of your own for each thread (for performance…