Namespaces
Variants
Actions

operator==, operator!= (std::experimental::pmr::memory_resource)

From cppreference.com
 
C++
 
Library fundamentals
 
Polymorphic allocator library
 
std::experimental::pmr::memory_resource
bool operator==( const memory_resource& a, const memory_resource& b ) noexcept;
(1) (library fundamentals TS)
bool operator!=( const memory_resource& a, const memory_resource& b ) noexcept;
(2) (library fundamentals TS)

Compares the memory_resources a and b for equality. Two memory_resources compare equal if and only if memory allocated from one memory_resource can be deallocated from the other and vice versa.

[edit] Return value

1) &a == &b || a.is_equal(b)
2) !(a == b)

[edit] See also

compare for equality with another memory_resource
(public member function) [edit]

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant