~/talk

Back to Basics: Pointers

Talkat CppCon 2021 · on Monday, 2021-10-25· at 15:15· online· [c-and-cpp]
slides:none on file

Covers concrete claims and demos: what a raw pointer actually stores, toy code that shows dereference, pointers-to-pointers, arrays decaying to pointers, dynamically allocated arrays and a small linked list implementation; shows function pointers and examples of sharing one object from multiple pointers and what happens when it is deleted. Explains pitfalls with reproducible tools: address sanitizer, valgrind for leaks and dangling pointers, and shows common failures: nullptr deref, double free, memory leaks. Presents modern fixes with standard library helpers like make_unique and shared_ptr/weak_ptr; code is on the GitHub link.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03My fondest programming memory
  3. 3:02What are pointers
  4. 5:04Visualizing pointers
  5. 7:34Memory
  6. 10:28Dereferencing
  7. 20:40Passing
  8. 32:37Arrays as Parameters
  9. 39:26Null Pointer
  10. 41:28Memory Leak
  11. 44:56Double Free
  12. 48:19Smart Pointers
  13. 53:18Pointing to Functions
  14. 56:31Data Structures
  15. 57:08Questions
  16. 58:01Wrapup
  17. 58:33Question
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.