Skip to content

This is a repository for notes I took when reading the book <<Effective C++ Third Edition: 55 Specific Ways to Improve Your Programs and Designs>> by Scott Meyers. The note contains of what are the important takeaways from the book. Note that this is not a redistribution of the content of the book, just some note I took for me to learn more abou…

Notifications You must be signed in to change notification settings

sliu-UIUC/Effective-Cpp-55-Ways-Note

Repository files navigation

Effective C++: 55 Ways to improve your programs and designs Note (In Progress)

This is a repository for notes I took when reading the book Effective C++ Third Edition: 55 Specific Ways to Improve Your Programs and Designs by Scott Meyers. The note contains of what are the important concepts and examples from the book. Note that this is not a redistribution of the content of the book, just some note I took for me to learn more about C++ programming language and design, and it would be a more convenient way to check for some coding decorum. Instead, I strongly recommend every C++ programmers to purchase this book and read it through, and check back here for concepts rewind. Hopefully this can also help others who wish to improve their design of C++ programs.

Chapter 1: Basics

  1. View C++ as a federation of languages
  2. Prefer consts, enums, and inlines to #defines
  3. Use const whenever possible
  4. Make sure objects are initialized before used

Chapter 2: Constructors, Destructors, and Assignment Operators

  1. Know what functions C++ silently writes and calls
  2. Explicitly disallow the use of compiler-generated functions you do not want
  3. Declare destructors virtual in polymorphic base classes
  4. Prevent exceptions from leaving destructors
  5. Never call virtual functions during construction or destruction
  6. Have assignment operators return a reference to *this
  7. Handling assignment to self in operator=
  8. Copy all parts of an object

Chapter 3: Resource Management

  1. Use objects to manage resources
  2. Think carefully about copying behavior in resource-managing classes

Chapter 4:

About

This is a repository for notes I took when reading the book <<Effective C++ Third Edition: 55 Specific Ways to Improve Your Programs and Designs>> by Scott Meyers. The note contains of what are the important takeaways from the book. Note that this is not a redistribution of the content of the book, just some note I took for me to learn more abou…

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published