Jump to content

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

From Wikibooks, open books for an open world

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)