Namespaces
Variants

operator==,!= (std::allocator)

From cppreference.net
Memory management library
( exposition only* )
Allocators
Uninitialized memory algorithms
Constrained uninitialized memory algorithms
Memory resources
Uninitialized storage (until C++20)
( until C++20* )
( until C++20* )
( until C++20* )

Garbage collector support (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(1)
template < class T1, class T2 >
bool operator == ( const allocator < T1 > & lhs, const allocator < T2 > & rhs ) throw ( ) ;
(C++11まで)
template < class T1, class T2 >
bool operator == ( const allocator < T1 > & lhs, const allocator < T2 > & rhs ) noexcept ;
(C++11から)
(C++20まで)
template < class T1, class T2 >

constexpr bool

operator == ( const allocator < T1 > & lhs, const allocator < T2 > & rhs ) noexcept ;
(C++20から)
(2)
template < class T1, class T2 >
bool operator ! = ( const allocator < T1 > & lhs, const allocator < T2 > & rhs ) throw ( ) ;
(C++11まで)
template < class T1, class T2 >
bool operator ! = ( const allocator < T1 > & lhs, const allocator < T2 > & rhs ) noexcept ;
(C++11から)
(C++20まで)

2つのデフォルトアロケータを比較します。デフォルトアロケータはステートレスであるため、2つのデフォルトアロケータは常に等しくなります。

1) true を返します。
2) 戻り値 false

!= 演算子は operator== から合成されます

(C++20以降)

パラメータ

lhs, rhs - 比較するデフォルトアロケータ

戻り値

1) true
2) false