std::pmr::m...do_is_equal(3)
okay so bestie, welcome to the page for std::pmr::m...do_is_equal(3) from the C++ Standard Libary manual β yes, that's the exact title, typo and all, and we're obsessed. π
β¨
πΈ NAME πΈ
std::pmr::memory_resource::do_is_equal β std::pmr::memory_resource::do_is_equal. That's the name, that's the whole name, and it's giving repeating-yourself main character energy. π
π¦ Synopsis π¦
virtual bool do_is_equal( const std::pmr::memory_resource& other )
(since C++17)
const noexcept = 0;
Compares *this for equality with other. That's the bit, bestie. π«Ά
Two memory_resources compare equal if and only if memory allocated from one memory_resource can be deallocated from the other and vice versa. Like, that's the whole equality rule and it's kinda iconic. β¨
π Notes π
Okay so The most-derived type of other may not match the most derived type of *this. That's a whole vibe check, fr. A derived class implementation therefore must typically check whether the most derived types of *this and other match using dynamic_cast, and immediately return false if the cast fails. So yeah, don't skip that check, bestie β it's literally in the notes. π
π See also π
is_equalβ compare for equality with anothermemory_resource(public member function). π
That's the whole std::pmr::m...do_is_equal(3) tea, bestie. Shoutout to http://cppreference.com and the date 2024.06.10 for this one β mwah. πππ¦
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms