std::pmr::operator==, std::pmr::operator!=

From cppreference.com
 
 
Dynamic memory management
Uninitialized storage
(C++17)
Garbage collection support
Miscellaneous
(C++20)
(C++11)
(C++11)
C Library
Low level memory management
 
 
bool operator==(const std::pmr::memory_resource& a,
                 const std::pmr::memory_resource& b) noexcept;
(1) (since C++17)
bool operator!=(const std::pmr::memory_resource& a,
                 const std::pmr::memory_resource& b) noexcept;
(2) (since C++17)

Compares the memory_resources a and b for equality. Two memory_resources compare equal if and only if memory allocated from one memory_resource can be deallocated from the other and vice versa.

Return value

1) &a == &b || a.is_equal(b)
2) !(a == b)

See also

compare for equality with another memory_resource
(public member function)