operator==,!=(std::allocator) - cppreference.com

From cppreference.com

template<classT1,classT2>booloperator==(constallocator<T1>&lhs,constallocator<T2>&rhs)throw(); (1)(until C++11)template<classT1,classT2>booloperator==(constallocator<T1>&lhs,constallocator<T2>&rhs)noexcept;(since C++11)
(until C++20)template<classT1,classT2>constexprbooloperator==(constallocator<T1>&lhs,constallocator<T2>&rhs)noexcept;(since C++20)template<classT1,classT2>booloperator!=(constallocator<T1>&lhs,constallocator<T2>&rhs)throw(); (2)(until C++11)template<classT1,classT2>booloperator!=(constallocator<T1>&lhs,constallocator<T2>&rhs)noexcept;(since C++11)
(until C++20)Compares two default allocators. Since default allocators are stateless, two default allocators are always equal.

1) Returns true.

2) Returns false.

The != operator is

synthesized

from operator==.

(since C++20)Parameters

lhs, rhs - default allocators to compare Return value

1)true

2)false