cpp/locale/locale/global

Replaces the global C++ locale with, which means all future calls to the std default constructor will now return a copy of. If has a name, also replaces the C locale as if by. This function is the only way to modify the global C++ locale, which is otherwise equivalent to at program startup.

Return value
The previous value of the global C++ locale.