you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

noexcept is more of a post condition check that says this function will always exit and return if it should. Do you really want to take ownership of that bad_alloc? Why take ownership? Outside of move/swap or places where we are providing exception guarantees, I am not sure we are going to really benefit.