CS106L

Move Semantics

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.

Photo Dump

Today's star is a Photo class. A photo is mostly pixels: one square Instagram post is 1080 × 1080, or 1,166,400 ints.

Copying all of those is slow. Today you'll make Photo move them instead, by stealing them from objects that are about to disappear.

First, an important question.

How many photos are on your phone right now?

0 of 1 done
Move Semantics · CS106L