std::locale::operator=

From cppreference.com
< cpp‎ | locale‎ | locale
const locale& operator= ( const locale& other ) throw ( ) ;
(until C++11)
const locale& operator= ( const locale& other ) noexcept ;
(since C++11)

Creates a copy of other, replacing the contents of *this. The reference counts of all facets held by other are incremented. The reference counts of all facets previously held by *this

Return value

Returns *this, which is now a copy of other.

Example

See also

constructs a new locale
(public member function)