Hi everyone, my name is Mateo, and welcome to my course on Working with Pointers
and Arrays in C++ 20. To understand modern C++ approach to pointers and memory,
we first need to cover what pointers are and how they work. In this course, we
are going to learn about indirection,
arrays, and memory management. First we need to get familiar with raw
pointers and references to understand how indirection works.
Pointers can give us access to dynamically allocated objects on
the heap. We'll learn how to manage that region of memory, and
why we need better abstraction mechanisms to prevent potential
issues like memory leaks.
Then we will utilize pointer arithmetic to see how arrays relate
to pointers and dynamic memory allocation.
Object‑oriented programming is embedded in the core of the
C++ language, so we need to figure out how pointers behave
in user‑defined data types.
This part of the course will include a set of demonstrations for
implementing virtual functions, RAII, and copy and move semantics.
Finally, once we are familiar with all of the main concepts,
we can learn about modern C++ classes from the standard library,
which can help us in abstracting away a lot of complexity related to managing
pointers and arrays. We will cover standard arrays, vectors, and all of the
smart pointer classes provided by the standard library.
Some of the major topics that we will cover include pointers and
references, dynamic memory allocation, array management,
copy and move semantics, smart pointers, and much
more. By the end of the course,
you will be familiar with how indirection and memory management
work so you will be able to pick the appropriate abstraction
mechanism based on the given situation.
I hope you'll join me on this journey to learn how pointers
and arrays work with the Working with Pointers and Arrays in
C++ 20 course at Pluralsight.