std::pmr::u...:do_is_equal(3)
β¨ NAME β¨
okay so bestie, this is the std::pmr::u...:do_is_equal(3) page from the C++ Standard Libary manual (yes, that's the manual name, we're keeping it exactly). The NAME section is doing its little echo thing: std::pmr::unsynchronized_pool_resource::do_is_equal β std::pmr::unsynchronized_pool_resource::do_is_equal. iconic, no notes.
πΈ Synopsis πΈ
virtual bool do_is_equal( const std::pmr::memory_resource& other )
(since C++17)
const noexcept;
So it's virtual, it's const noexcept, and it's been here since C++17. slay.
Compare *this with other for identity β memory allocated using an unsynchronized_pool_resource can only be deallocated using that same resource. that's the whole vibe check right there.
π Return value π
it returns literally this == &other. that's it. that's the return value. short, sweet, zero drama.
π Defect report π
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
- DR
LWG 3000β applied toC++17; behavior as published:unnecessary dynamic_cast was performed; correct behavior:removed.
we love a retroactive glow-up.
π See also π
do_is_equalβ compare for equality with anothermemory_resource[virtual](virtual private member function ofstd::pmr::memory_resource).
π«Ά source: http://cppreference.com β’ date/version: 2024.06.10 β’ page: std::pmr::u...:do_is_equal(3) β bye bestie, hydrate and keep your memory resource identity correct πβ¨
π¦ 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