operator==,!= (std::allocator)
From de.cppreference.net
| (1) | ||
|
template
<
class
T1,
class
T2
>
bool operator == ( const allocator < T1 > & lhs, const allocator < T2 > & rhs ) throw ( ) ; |
(bis C++11) | |
|
template
<
class
T1,
class
T2
>
bool operator == ( const allocator < T1 > & lhs, const allocator < T2 > & rhs ) noexcept ; |
(seit C++11)
(bis C++20) |
|
|
template
<
class
T1,
class
T2
>
constexpr
bool
|
(seit C++20) | |
| (2) | ||
|
template
<
class
T1,
class
T2
>
bool operator ! = ( const allocator < T1 > & lhs, const allocator < T2 > & rhs ) throw ( ) ; |
(bis C++11) | |
|
template
<
class
T1,
class
T2
>
bool operator ! = ( const allocator < T1 > & lhs, const allocator < T2 > & rhs ) noexcept ; |
(seit C++11)
(bis C++20) |
|
Vergleicht zwei Standard-Allokatoren. Da Standard-Allokatoren zustandslos sind, sind zwei Standard-Allokatoren immer gleich.
1)
Gibt
true
zurück.
2)
Gibt
false
zurück.
|
Der
|
(seit C++20) |
Parameter
| lhs, rhs | - | Standard-Allokatoren zum Vergleichen |
Rückgabewert
1)
true
2)
false