Can I use ‘ == ‘ to compare two vectors. I tried it and seems to be working fine. But I don’t know whether it will work in more complex situations
The overload of operator == that works on two std::vectors will compare the vector sizes and return false if those are different; if not, it will compare the contents of the vector element-by-element. If operator == is defined for the vector’s element type, then the comparison of vectors through operator == is valid and meaningful. … Read more