listings-Chap03-README.md
Listings of Chap03.docx
This is linked summary of the listings. You can also view it on one page.
- Listing 03.2 C++: In C++, you have values instead of references.
- Book: lst-0001-book.cpp
- Listing 03.3 C++: Modern C++ with heap memory uses auxiliary classes such as shared_ptr.
- Book: lst-0002-book.cpp
- Godbolt: lst-0002-godb.cpp, https://godbolt.org/z/WM11Gs6sz
- Listing 03.4 C++: Without modern C++ tools, special attention must be paid to pointer ownership.
- Book: lst-0003-book.cpp
- Godbolt: lst-0003-godb.cpp, https://godbolt.org/z/Ee7eqq1MY
- Listing 03.6 C++: const can protect the value or the reference.
- Book: lst-0004-book.cpp
- Godbolt: lst-0004-godb.cpp, https://godbolt.org/z/Moe5M7sK8