cpp/regex/regex traits/imbue

Replaces the current locale with a copy of. If is different than the current locale, then all cached data is invalidated.

After the call.

Return value
The current locale of the traits object.

If has been never called for this object, then the global locale at the time of the call is returned. Otherwise, the locale passed to the last call to is returned.