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 이전)

두 기본 할당자를 비교합니다. 기본 할당자는 상태를 가지지 않으므로 두 기본 할당자는 항상 동일합니다.

1) true 를 반환합니다.
2) 반환값 false .

!= 연산자는 operator== 로부터 합성됩니다 .

(C++20부터)

매개변수

lhs, rhs - 비교할 기본 할당자

반환값

1) true
2) false