C++: Overloading Arithmetic & Relational Operators
Some of the most commonly overloaded operators include binary arithmetic operators used in operations such as a + b; compound assignment operat+B30ors of the form a+= b; and the prefix and postfix operators of the form a++. In this course discover how to overload binary arithmetic operators appropriately so that they support correct semantics in chaining. Learn how to overload compound assignment operators such as +=. Explore how the C++ compiler differentiates between the pre and post increment operators and how these operators work in various edge cases. When you complete this course you will be able to confidently leverage std_rel_ops by overloading relational operators.