C++ Language/Std/Strings/StringClass/Equality

The  operator exists for comparing the data inside two   objects.

Additional information about string equality (includes interactive examples)