operator==,!=(std::allocator) (3) - Linux Manuals
operator==,!=(std::allocator): operator==,!=(std::allocator)
NAME
operator==,!=(std::allocator) - operator==,!=(std::allocator)
Synopsis
template< class T1, class T2 > (until C++11)
bool operator==( const allocator<T1>& lhs, const allocator<T2>& rhs ) throw();
template< class T1, class T2 > (since C++11)
bool operator==( const allocator<T1>& lhs, const allocator<T2>& rhs ) noexcept;
template< class T1, class T2 > (until C++11)
bool operator!=( const allocator<T1>& lhs, const allocator<T2>& rhs ) throw();
template< class T1, class T2 > (since C++11)
bool operator!=( const allocator<T1>& lhs, const allocator<T2>& rhs ) noexcept;
Compares two default allocators. Since default allocators are stateless, two default allocators are always equal.
1) Returns true
2) Returns false
Parameters
lhs, rhs - default allocators to compare
Return value
1) true
2) false