Profit from minimal effort

I understand that containers can be optimized for types that have noexcept move constructor / assign / swap. But are there any practical reasons (other than documentation) for specifying other operations as noexcept ?

In particular, I am interested in whether there are optimizations in the standard library to get an additional noexcept :

  • Default constructor
  • Copy constructor
  • Copy destination
+5
source share

All Articles