CS106L

RAII & Smart Pointers

0 points

Attendancefor this activity has closed. Sign in to be counted — nothing is recorded while you are signed out, and the activity itself works either way.

Banana Countdown

Every fruit has a lifetime: from the moment you buy it until it rots.

In C++, every resource you acquire has a lifetime too. If nobody cleans it up, it rots in memory. That's a .

Today, you'll make sure every fruit gets composted on time, no matter how your code exits.

What is your favorite type of banana?

0 of 1 done
RAII & Smart Pointers · CS106L