|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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(); | (until C++11) | |
template<class T1,class T2> bool operator==(const allocator<T1>& lhs,const allocator<T2>& rhs)noexcept; | (since C++11) (until C++20) | |
template<class T1,class T2> constexprbool | (since C++20) | |
| (2) | ||
template<class T1,class T2> bool operator!=(const allocator<T1>& lhs,const allocator<T2>& rhs)throw(); | (until C++11) | |
template<class T1,class T2> bool operator!=(const allocator<T1>& lhs,const allocator<T2>& rhs)noexcept; | (since C++11) (until C++20) | |
Compares two default allocators. Since default allocators are stateless, two default allocators are always equal.
The | (since C++20) |
| lhs, rhs | - | default allocators to compare |