What does the emplace_back member function do that push_back does not?
- A Constructs the element in place from its arguments, avoiding a temporary
- B Appends multiple elements
- C Sorts after insertion
- D Reserves capacity
Answer
Constructs the element in place from its arguments, avoiding a temporary
emplace_back forwards its arguments to the element's constructor, which avoids constructing and then moving or copying a temporary.





