C++ C++ Basic Operator Overload

Introduction

  1. C++ Operator Overload Introduction
  2. C++ Operator Overload '+' operator adds two Measures
  3. C++ Operator Overload '+' operator adds two times
  4. C++ Operator Overload '+' operator concatenates strings for custom string class
  5. C++ Operator Overload '+=' assignment operator (compound plus assignment)
  6. C++ Operator Overload '+=' operator concatenates strings
  7. C++ Operator Overload '-' operator subtracts two Measures
  8. C++ Operator Overload '<' operator compares two Measures


  9. C++ Operator Overload '==' operator compares strings
  10. C++ Operator Overload * operator for the Pool class to post-multiply
  11. C++ Operator Overload * operator for the Pool class to pre-multiply
  12. C++ Operator Overload + operator
  13. C++ Operator Overload ++ operator in both prefix and postfix
  14. C++ Operator Overload << and >> operators
  15. C++ Operator Overload << and >> operators for files
  16. C++ Operator Overload << ostream operator


  17. C++ Operator Overload [] operator for both put and get
  18. C++ Operator Overload addition operator for Pool objects
  19. C++ Operator Overload addition operator for Pool objects with this pointer
  20. C++ Operator Overload all comparison operator
  21. C++ Operator Overload arithmetic operators work with type Int
  22. C++ Operator Overload array class, overloads assignment operator and copy constructor
  23. C++ Operator Overload assignment operator = (equals)
  24. C++ Operator Overload binary + operator
  25. C++ Operator Overload binary += operator (compound assignment operator)
  26. C++ Operator Overload Built-in Conversion from a user-defined data type to a built-in data type
  27. C++ Operator Overload conversion operator functions
  28. C++ Operator Overload Conversions to float
  29. C++ Operator Overload Convert between ordinary strings and class String
  30. C++ Operator Overload Converts from Time24 to Time12 using operator in Time24
  31. C++ Operator Overload Global Operator Functions
  32. C++ Operator Overload implicit conversion
  33. C++ Operator Overload Increment counter variable with ++ operator
  34. C++ Operator Overload Increment counter variable with ++ operator, uses unnamed temporary object
  35. C++ Operator Overload insertion << and extraction >> operator functions
  36. C++ Operator Overload insertion operator << for cout
  37. C++ Operator Overload Lvalues and the Overloaded Subscript Operator
  38. C++ Operator Overload plus + operator
  39. C++ Operator Overload plus operator (+) for Complex class
  40. C++ Operator Overload relational expression == to Complex class
  41. C++ Operator Overload Returns contents of the this pointer
  42. C++ Operator Overload Stream extraction operator
  43. C++ Operator Overload Stream insertion operator
  44. C++ Operator Overload Subscript Operator
  45. C++ Operator Overload templates for overloaded comparison operators
  46. C++ Operator Overload the % operator for Pool class to divide
  47. C++ Operator Overload the / operator for the Pool class to divide
  48. C++ Operator Overload Time class with an overloaded extraction operator implemented as a friend of the Time class
  49. C++ Operator Overload Time class with an overloaded insertion operator.
  50. C++ Operator Overload unary postfix ++ operator
  51. C++ Operator Overload unary prefix ++ operator
  52. C++ Operator Overload Writing Time class objects to a file