Testing objects'equality: operator== in C++

The big picture

This page tries to summarize the different aspects and subtle points of object comparison in C++. Suppose you want to compare two instances of a class such as~: