Summary
Team LiB
Previous Section Next Section

Summary

If you ++c, also c++: The increment and decrement operators are tricky because each has pre- and postfix forms, with slightly different semantics. Define operator++ and operator-- such that they mimic the behavior of their built-in counterparts. Prefer to call the prefix versions if you don't need the original value.

    Team LiB
    Previous Section Next Section