Namespaces
Variants

std::pmr::memory_resource:: do_is_equal

From cppreference.net
Memory management library
( exposition only* )
Allocators
Uninitialized memory algorithms
Constrained uninitialized memory algorithms
Memory resources
Uninitialized storage (until C++20)
( until C++20* )
( until C++20* )
( until C++20* )

Garbage collector support (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
virtual bool do_is_equal ( const std:: pmr :: memory_resource & other ) const noexcept = 0 ;
(C++17부터)

* this other 의 동등성을 비교합니다.

memory_resource 가 서로 비교하여 같다고 판단되는 경우는, 한 memory_resource 에서 할당된 메모리를 다른 쪽에서 해제할 수 있고 그 반대도 가능할 때만 해당합니다.

참고 사항

other 의 최종 파생 타입이 * this 의 최종 파생 타입과 일치하지 않을 수 있습니다. 따라서 파생 클래스 구현은 일반적으로 * this other 의 최종 파생 타입이 dynamic_cast 를 사용하여 일치하는지 확인하고, 캐스트가 실패할 경우 즉시 false 를 반환해야 합니다.

참고 항목

다른 memory_resource 와의 동등성 비교
(public member function)