I understand containers can optimize for types having noexcept move constructor / assignment / swap. But are there practical reasons (aside documentation) for specifying other operations as noexcept
?
Specifically, I'm interested if there are optimizations in the standard library to be gained by additionally having noexcept
:
- Default constructor
- Copy constructor
- Copy assignment