std::pmr::m...ce::is_equal(3)

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

πŸ’– std::pmr::memory_resource::is_equal πŸ’–

okay so welcome to the std::pmr::m...ce::is_equal(3) page in the C++ Standard Libary, bestie β€” this is the equality-check moment for memory resources and it's lowkey important ✨

✨ NAME ✨

std::pmr::memory_resource::is_equal β€” literally std::pmr::memory_resource::is_equal, no cap. That's the name, that's the vibe πŸ’…

🌸 Synopsis 🌸

bool is_equal( const memory_resource& other ) const noexcept;

✨ since C++17 ✨

okay so what does it do? It compares *this for equality with other. Two memory_resources compare equal if and only if memory allocated from one memory_resource can be deallocated from the other and vice versa. yes bestie, that's the whole equality contract, periodt 🫢

It's equivalent to:

return do_is_equal(other);

πŸ¦‹ See also πŸ¦‹

  • do_is_equal β€” compare for equality with another memory_resource [virtual] (virtual private member function) πŸ’œ

source: http://cppreference.com Β· version/date: 2024.06.10 Β· page: std::pmr::m...ce::is_equal(3) β€” mwah, bye bestie! πŸŽ€

πŸ“¦ where this page comes from