cpp/error/set unexpected

Makes the new global std and returns the previously installed std.

Return value
The previously-installed unexpected handler, or a null pointer value if none was installed.