public member function
<locale>

std::locale::operator=

const locale& operator= (const locale& x) throw();
const locale& operator= (const locale& x) noexcept;
Copy locale
Assigns x to the locale object, replacing its current value.

Parameters

x
Locale to copy

Return value

*this

Data races

The locale object is modified.

Exception safety

No-throw guarantee: this member function never throws exceptions.

See also