std::locale::operator=

From Cppreference

Jump to: navigation, search
Defined in header <locale>

const locale& operator=( const locale& other );

Creates a copy of other, replacing the contents of *this. The reference counts of all facets held by other is incremented. The reference count of all facets previously held by *this is decremented, and those facets whose reference count becomes zero are deleted.

Contents

[edit] Return value

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

[edit] Exceptions

noexcept specification:  
noexcept

  (C++11 feature)

[edit] Example

[edit] See also

(constructor)
constructs a new locale
(public member function)