operator==,!=(std::allocator)
Von cppreference.com
| (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-Allocatoren. Da Standard-Allocatoren zustandslos sind, sind zwei Standard-Allocatoren immer gleich.
1) Gibt true zurück.
2) Gibt false zurück.
|
Der Operator |
(seit C++20) |
[bearbeiten] Parameter
| lhs, rhs | - | zu vergleichende Standard-Allocatoren |
[bearbeiten] Rückgabewert
1) true
2) `false`