|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Public member functions | ||||
| Private member functions | ||||
memory_resource::do_is_equal | ||||
| Non-member functions | ||||
(until C++20) |
virtualbool do_is_equal(conststd::pmr::memory_resource& other)constnoexcept=0; | (since C++17) | |
Compares*this for equality withother.
Twomemory_resources compare equal if and only if memory allocated from onememory_resource can be deallocated from the other and vice versa.
The most-derived type ofother may not match the most derived type of*this. A derived class implementation therefore must typically check whether the most derived types of*this andother match usingdynamic_cast, and immediately returnfalse if the cast fails.
compare for equality with anothermemory_resource(public member function)[edit] |