C++ Language/Std/Stl/CollectionClasses/SequenceCollections/Vector/Equality

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Operators == and != compare two vector objects. If you want to compare a vector to some other kind of collection, then you need to use the more general std::equal() function.

Additional information about vector equality (includes interactive examples)