Namespaces
Variants

Template:std print ostream exceptions

From cppreference.com
  • std::bad_alloc on allocation failure.
  • Propagate any exception thrown by any formatter, e.g. std::format_error, without regard to the value of os.exceptions() and without turning on std::ios_base::badbit in the error state of os.
  • May throw std::ios_base::failure caused by os.setstate(ios_base::badbit) which is called if an insertion into os fails.