TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
C++ Coding Standard

Rule:  INT#011Checked automatically with code checker

Synopsis:If you overload one of a closely related set of operators, then you should overload the whole set and preserve the same invariants that exist for built-in types
Severity Level:9
Category:Class Interface


When an expression is using one of the operators, it is expected to work with the opposite operator as well.