Effective C++ by Scott Meyers (Short Summary)
CtrlK
  • Introduction
  • Chapter 1 - Accustoming Yourself to C++
  • Chapter 2 - Constructors, Destructors, and Assignment Operators
  • Chapter 3 - Resource Management
  • Chapter 4 - Designs and Declarations
    • Item 18 - Make interfaces easy to use correctly and hard to use incorrectly.
    • Item 19 - Treat class design as type design.
    • Item 20 - Prefer pass-by-reference-to-const to pass-by-value.
    • Item 21 - Don't try to return a reference when you must return an object.
    • Item 22 - Declare data members private.
    • Item 23 - Prefer non-member non-friend functions to member functions.
    • Item 24 - Declare non-member functions when type conversions should apply to all parameters.
    • Item 25 - Consider support for a non-throwing swap.
Powered by GitBook
On this page
  1. Chapter 4 - Designs and Declarations

Item 20 - Prefer pass-by-reference-to-const to pass-by-value.

PreviousItem 19 - Treat class design as type design.NextItem 21 - Don't try to return a reference when you must return an object.