template< class T1, class T2 >
bool operator==( const allocator<T1>& lhs, const allocator<T2>& rhs ); |
||
template< class T1, class T2 >
bool operator!=( const allocator<T1>& lhs, const allocator<T2>& rhs ); |
||
比较二个默认分配器。因为默认分配器无状态,故二个默认分配器始终相等。
lhs, rhs | - | 要比较的默认分配器 |
(无) | (C++11 前) |
noexcept 规定:
noexcept
|
(C++11 起) |