operator==,!=(std::allocator)
From cppreference.com
| (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