This is the crux of an interview question I ask, and you’d be amazed how many experienced cpp devs require heavy hints to get it