Assigning vectors and Comparing vectors for Equality
Line 54 assigns
integers1, demonstrating that the assignment (
=) operator can be used with
vector objects. Lines 56–59 output the contents of both objects to show that they now contain identical values. Line 64 then compares
integers2 with the equality (
==) operator to determine whether the contents of the two objects are equal after the assignment in line 54 (which they are).