Modern C++ CHAPTER 2(读书笔记)

时间:2023-03-08 22:18:16
Modern C++ CHAPTER 2(读书笔记)

CHAPTER 2

Recipe 2-1. Initializing Variables

Recipe 2-2. Initializing Objects with Initializer Lists

使用初始化列表的使用

Recipe 2-3. Using Type Deduction

关于auto关键字的使用

Recipe 2-4. Using auto with Functions

Recipe 2-5. Working with Compile Time Constants

constexpr 关键字的使用

Recipe 2-6. Working with Lambdas

匿名函数的使用

Recipe 2-7. Working with Time

Recipe 2-8. Understanding lvalue and rvalue References

左值引用与右值引用

Recipe 2-9. Using Managed Pointers

各类pointer