Namespaces
Variants

std::filesystem::filesystem_error:: operator=

From cppreference.net
filesystem_error & operator = ( const filesystem_error & other ) noexcept ;
(C++17 이후)

other 의 내용을 할당합니다. 만약 * this other 모두 동적 타입 std::filesystem::filesystem_error 를 가지고 있다면, 할당 후 std:: strcmp ( what ( ) , other. what ( ) ) == 0 입니다.

목차

매개변수

other - 할당할 다른 filesystem_error 객체

반환값

* this

참고 사항

일반적인 구현에서는 path 객체를 path1() path2() 에 의해 참조되는 참조 카운트 저장소에 저장합니다. 결과적으로, * this other 는 대입 후 일반적으로 path 객체를 공유합니다.

예제