std::pmr::s...:do_is_equal(3)
π 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_castwas performed - Correct behavior: removed
π See also π
do_is_equalβ compare for equality with anothermemory_resource[virtual](virtual private member function ofstd::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
- 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