c_plus_plus_vector

比较两个 vector 是否相等

bool operator==( const std::vector<T, Alloc>& lhs, const std::vector<T, Alloc>& rhs )

  • Checks if the contents of lhs and rhs are equal, that is, they have the same number of elements and each element in lhs compares equal with the element in rhs at the same position.

其他方法

  • std::equal
  • std::mismatch