noexcept internal transformation

int foo() noexcept {
	return 1 + 2;
}

equivalent1 to

#include <exception> // for noexcept transformation
int foo() noexcept
{
  try {
    return 1 + 2;
  } catch(...) {
    std::terminate();
  }
}

Footnotes:

1

https://cppinsights.io/ + “Show noexcept internals”