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_resource
s a
and b
for equality. Two memory_resource
s compare equal if and only if memory allocated from one memory_resource
can be deallocated from the other and vice versa.
&a == &b || a.is_equal(b)
!(a == b)
compare for equality with another memory_resource (public member function) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/memory/memory_resource/operator_eq