I stumbled upon this as I was trying to learn array and vectors in C ++. What is the “paging effect” mentioned in the message? Also, to test my own understanding, I think the vector uses more time due to dynamic memory allocation. I'm right?
additional question: but with vector<int> arr( 10000 )whether there is already enough memory for 10000 int allocated? or put it this way, arrstill growing if everything I do iterates through each element and initializes them?
source
share