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

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

πŸ’– NAME πŸ’–

okay so this page is std::pmr::s...:do_is_equal(3), and the manual it's chilling in is the C++ Standard Libary manual β€” yes, "Libary," that's the header spelling, and we are not fixing it, it's iconic now πŸ’….

The full name is std::pmr::synchronized_pool_resource::do_is_equal β€” and yep, the NAME line repeats it like it's hyping itself up: std::pmr::synchronized_pool_resource::do_is_equal. periodt. πŸŽ€


✨ Synopsis ✨

virtual bool do_is_equal( const std::pmr::memory_resource& other )
(since C++17)
const noexcept;

This one is virtual, it's const, it's noexcept, and it's been here since C++17. The whole vibe: compare *this with other for identity β€” and memory allocated using a synchronized_pool_resource can only be deallocated using that same resource. no cap. 🫢

🫢 Return value 🫢

this == &other

Literal return value. That's it. That's the whole answer. πŸ’–

🩹 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

πŸ‘€ See also πŸ‘€

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

mwah πŸ’‹ this cutie came from http://cppreference.com, version/date 2024.06.10, and the page is std::pmr::s...:do_is_equal(3). slay πŸŽ€

πŸ“¦ where this page comes from