Non-member binary comparisons#

template <typename T, typename Allocator>
bool operator==( const concurrent_queue<T, Allocator>& lhs,
                 const concurrent_queue<T, Allocator>& rhs );

Checks if lhs is equal to rhs, that is they have the same number of elements and lhs contains all elements from rhs.

Returns: true if lhs is equal to rhs; false, otherwise.

template <typename T, typename Allocator>
bool operator!=( const concurrent_queue<T, Allocator>& lhs,
                 const concurrent_queue<T, Allocator>& rhs );

Equivalent to !(lhs == rhs).

Returns: true if lhs is not equal to rhs; false, otherwise.