operator==,!= (std::allocator)
From cppreference.net
C++
Memory management library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::allocator
| Member functions | ||||
|
(until C++20)
|
||||
|
(C++23)
|
||||
|
(until C++20)
|
||||
|
(until C++20)
|
||||
|
(until C++20)
|
||||
| Non-member functions | ||||
|
operator==
operator!=
(until C++20)
|
| (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
|
(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
.
|
|
(C++20부터) |
매개변수
| lhs, rhs | - | 비교할 기본 할당자 |
반환값
1)
true
2)
false