Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC++exception-safety guaranteesSingle-choice MCQ

How does std::vector decide whether to move or copy elements when it reallocates during growth?

// During vector reallocation of element type T: