My learning notes and practice codes for book Effective Modern C++ (by Scott Meyers).
- Item 1. Understand template type deduction
- Item 2. Understand auto type deduction
- Item 3. Understand decltype
- Item 4. Know how to view deduced types
- Item 5. Prefer auto to explicit type declarations
- Item 6. Use the explicity typed initializer idiom when auto deduces undesired types
- Item 7. Distinguish between () and {} when creating objects
- Item 8. Prefer
nullptr
to0
andNULL
- Item 9. Prefer alias declarations to typedefs
- Item 10. Prefer scoped enums to unscoped enums
- Item 11. Prefer deleted functions to private undefined ones
- Item 12. Declare overriding functions override
- Item 13. Prefer const_iterators to iterators
- Item 14. Declare functions noexcept if they won't emit exceptions
- Item 15. User constexpr whenever possible
- Item 16. Make const member functions thread safe
- Item 17. Understand special member function generation