Namespaces
Variants
Actions

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

From cppreference.com
 
C++
 
Library fundamentals
 
Polymorphic allocator library
 
std::experimental::pmr::polymorphic_allocator
template< class T1, class T2 >
bool operator==( const polymorphic_allocator<T1>& lhs, const polymorphic_allocator<T2>& rhs ) noexcept;
template< class T1, class T2 >
bool operator!=( const polymorphic_allocator<T1>& lhs, const polymorphic_allocator<T2>& rhs ) noexcept;

Compares two polymorphic allocators. Two polymorphic allocators compare equal if their underlying memory resource compares equal.

1) Returns *lhs.resource() == *rhs.resource().
2) Returns !(lhs == rhs).

[edit] Parameters

lhs, rhs - polymorphic allocators to compare

[edit] Return value

1) *lhs.resource() == *rhs.resource()
2) !(lhs == rhs)

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