Inbal Levi - Smart Pointers and RAII - Meeting C++ online

Опубликовано: 11 Май 2025
на канале: Meeting Cpp
1,754
65

Inbal Levi - Smart Pointers and RAII - Meeting C++ online
Slides: https://slides.meetingcpp.com
Survey: https://survey.meetingcpp.com

In this talk we will overview one of the most fundamental and useful abilities of C++: Resource Acquisition Is Initialization. We'll start with an overview of "what is a resource" and understand the difficulties of managing resources in modern programming. Next, we will overview a few solutions suggested in the software development world, and analyze their pros and cons.

We will then deep dive into C++'s suggested solutions, including smart pointers, and learn how to combine them in our code. Finally, we will discuss RAII from a design perspective, and how to apply a user-defined RAII solution to your code.

At the end of the talk you'll be familiar with resource management in software applications in general, and have the toolbox for applying it to your C++ project.