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

From cppreference.com
< cpp‎ | memory‎ | memory resource
Memory management library
(exposition only*)
Uninitialized memory algorithms
(C++17)
(C++17)
(C++17)
(C++20)
Constrained uninitialized
memory algorithms
(C++20)
C Library

Allocators
(C++11)
(C++11)
Memory resources
Garbage collection support
(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)
Uninitialized storage
(until C++20*)
(until C++20*)
(until C++20*)
Explicit lifetime management
Defined in header <memory_resource>
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)
(until C++20)

Compares the memory_resources a and b for equality. Two memory_resources compare equal if and only if memory allocated from one memory_resource

The != operator is synthesized from operator==.

(since C++20)

Return value

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

See also

compare for equality with another memory_resource
(public member function)