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

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

okay bestie, welcome to the C++ Standard Libary manual page for std::pmr::monotonic_buffer_resource::do_is_equal πŸ’– the header shortens it to std::pmr::m...do_is_equal(3) because even manpage titles need a little nap.

🌸 NAME 🌸

This page is literally about std::pmr::monotonic_buffer_resource::do_is_equal β€” and yes, std::pmr::monotonic_buffer_resource::do_is_equal again, because the NAME section said it twice and I respect that πŸ’….

✨ Synopsis ✨

virtual bool do_is_equal( const std::pmr::memory_resource& other )
const noexcept;

(since C++17) bestie, she’s been here since then ✨

Compare *this with other for identity β€” memory allocated using a monotonic_buffer_resource can only be deallocated using that same resource. no cap, that’s the whole vibe 🫢

πŸ’… Return value πŸ’…

The return value is literally:

this == &other

that’s it, that’s the whole serve 😭

😭 Defect report 😭

The following behavior-changing defect reports were applied retroactively to previously published C++ standards. yes, the lore goes back πŸ‘‘

  • DR: LWG 3000
  • Applied to: C++17
  • Behavior as published: unnecessary dynamic_cast was performed
  • Correct behavior: removed

πŸ‘‘ See also πŸ‘‘

  • do_is_equal β€” compare for equality with another memory_resource [virtual] (virtual private member function of std::pmr::memory_resource) πŸ¦‹

mwah πŸ’‹ source/version: http://cppreference.com Β· date: 2024.06.10 β€” that’s the cute little footer, bestie, periodt 🌈

πŸ“¦ where this page comes from