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 ( ) ; |
(hasta C++11) | |
|
template
<
class
T1,
class
T2
>
bool operator == ( const allocator < T1 > & lhs, const allocator < T2 > & rhs ) noexcept ; |
(desde C++11)
(hasta C++20) |
|
|
template
<
class
T1,
class
T2
>
constexpr
bool
|
(desde C++20) | |
| (2) | ||
|
template
<
class
T1,
class
T2
>
bool operator ! = ( const allocator < T1 > & lhs, const allocator < T2 > & rhs ) throw ( ) ; |
(hasta C++11) | |
|
template
<
class
T1,
class
T2
>
bool operator ! = ( const allocator < T1 > & lhs, const allocator < T2 > & rhs ) noexcept ; |
(desde C++11)
(hasta C++20) |
|
Compara dos asignadores predeterminados. Dado que los asignadores predeterminados no tienen estado, dos asignadores predeterminados siempre son iguales.
1)
Devuelve
true
.
2)
Devuelve
false
.
|
El operador
|
(since C++20) |
Parámetros
| lhs, rhs | - | asignadores predeterminados a comparar |
Valor de retorno
1)
true
2)
false