The comparison of content is totally right when comparing for equality. Maybe this should be a function names e.g. compare(). Using operator== for a calculation intensive task (e.g. comparing content) may lead to overuse by the expectation of a developer that operator== is fast. Do we have a general concept on such comparison as part of the coding guidelines?