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まで) |
|
2つのデフォルトアロケータを比較します。デフォルトアロケータはステートレスであるため、2つのデフォルトアロケータは常に等しくなります。
1)
true
を返します。
2)
戻り値
false
。
|
|
(C++20以降) |
パラメータ
| lhs, rhs | - | 比較するデフォルトアロケータ |
戻り値
1)
true
2)
false