Hacker News new | ask | show | jobs
by quuxplusone 45 days ago
std::vector does. No other container cares about noexcept at all.

https://stackoverflow.com/questions/66459162/where-do-standa...

Background: https://quuxplusone.github.io/blog/2022/08/26/vector-pessimi...

1 comments

Ah yes, I forgot that only vector can relocate elements. (Other containers can invalidate iterators but the objects themselves aren't moved.)