| 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 can be deallocated from the other and vice versa.
|
The |
(since C++20) |
Return value
&a == &b || a.is_equal(b)!(a == b)See also
compare for equality with another memory_resource (public member function) |
Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.