std::pmr::u...:do_is_equal(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

✨ 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 to C++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 another memory_resource [virtual] (virtual private member function of std::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