Click here to Skip to main content
15,903,012 members

Comments by Member 15645256 (Top 1 by date)

Member 15645256 23-May-22 5:54am View    
Thank you.Yes,I know that reserve() does not change the size of the vector. And the size() just shows how many elements the vector has. But reserve() can provide extra memories with vector. And these memories are currently not used to store any elements. Why can't I use std::uninitialized_copy to copy elements to these memories.