public static member function

std::locale::global

<locale>
static locale global (const locale& loc);
Set global locale [static]
Sets the global locale to loc.

After the call, the construction of locale objects with its default constructor return a copy of loc.

Parameters

loc
A locale object to be set as global locale.

Return value

The previous global locale object.

See also