Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 924 Bytes

non_member_binary_comparisons.rst

File metadata and controls

30 lines (20 loc) · 924 Bytes

Non-member binary comparisons

Two objects of concurrent_vector are equal if:

  • they contains an equal number of elements.
  • the elements on the same positions are equal.
template <typename T, typename Allocator>
bool operator==( const concurrent_vector<T, Allocator>& lhs,
                 const concurrent_vector<T, Allocator>& rhs );

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


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

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