The Most Addictive Python and SQL Courses
AI, Data Science & Cloud Certificates from Google, IBM & Meta
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