Friday, November 23, 2018

What is difference between insert and emplace for vector in C++

Apart from single insertion using emplace and multiple insertion using insert in vector,
is there any other difference in their implementation?




As in both cases inserting any element will shift all other elements.

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...