I'm trying to understand noexcept. I came to know global swap function is generally specified like this
void swap (T& x, T& y) noexcept(noexcept(x.swap(y)))
{
x.swap(y);
}
I want to understand why noexcept specification is noexcept(noexcept(x.swap(y))) but not noexcept(x.swap(y)).