Namespaces
Variants
Views
Actions

std::locale::operator=

From cppreference.com
< cpp‎ | locale‎ | locale
Revision as of 22:54, 18 October 2024 by D41D8CD98F (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 
 
 
 
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 are decremented, and those facets whose reference count becomes zero are deleted.

[edit] Return value

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

[edit] Example

[edit] See also

constructs a new locale
(public member function) [edit]