Namespaces
Variants

std::locale:: operator=

From cppreference.net
const locale & operator = ( const locale & other ) throw ( ) ;
(C++11 이전)
const locale & operator = ( const locale & other ) noexcept ;
(C++11 이후)

other 의 복사본을 생성하여 * this 의 내용을 대체합니다. other 가 보유한 모든 facet의 참조 카운트가 증가합니다. 이전에 * this 가 보유했던 모든 facet의 참조 카운트는 감소하며, 참조 카운트가 0이 된 facet들은 삭제됩니다.

반환값

* this 를 반환하며, 이는 이제 other 의 복사본입니다.

예제

참고 항목

새로운 locale을 생성합니다
(public member function)