The only exception that this function might throw is an exception of type bad_alloc. If it throws an exception with a different type, either directly or indirectly, it cannot be caught by a regular bad_alloc-type handler.
If you want. That line just says that's the only exception it is *meant* to throw, so that you know to write code to catch it if you want to handle it.