Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Back to Basics: RAII in C++ - Lecture

CppCon via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This course explains the RAII idiom for managing resources in C++. It uses standard library examples, including smart pointers and lock guards, and discusses design considerations for custom RAII classes.

Syllabus

Introduction
Agenda
Resource
Memory
Common Problems
Lock Mutex
Object Lifetimes
Lock Guard
Shared Pointer
Standed Unique Lock
Standed Thread
Resource loops
Unique pointer
Fopen and Fclose
Shared pointers
Default acquisition
Object copyable
Core guidelines
Questions

Taught by

CppCon

Reviews

Start your review of Back to Basics: RAII in C++ - Lecture

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.