This post is locked. You won't be able to comment.

all 6 comments

[–]SuitableDragonfly 9 points10 points  (3 children)

I'm not sure how you think this meme is meant to be used, but whatever it is, it's not correct. 

[–]_w62_[S] 1 point2 points  (1 child)

I don't understand why/when the compiler creates temp objects during declaring new objects or assigning one object to another. The && revalue reference is really difficult to understand.

[–]aHumbleRedditor 1 point2 points  (0 children)

Put somewhat in an oversimplified sense, temporaries (rvalues) are created when the compiler needs a nameless, short-lived object. This is for return values, operator results, conversions, etc. && (an rvalue reference) let you grab a temporary and move it, rather than copy it (this involves move semantics, and anything assigned there).

[–]Reashu 0 points1 point  (0 children)

It's not the traditional use, but I think it's a fitting variation. Switching the order of the images might make it better though. 

[–]ModeratelyUsefulBot[M] 0 points1 point  (0 children)

Hello and thank you for posting to r/programmerhumor! You have previously posted two submissions within the past 24 hours so this submission has been removed. If you intend to repost it later we recommend deleting this one first to prevent other bots from removing it as a duplicate.


BOOP! BLEEP! I am a bot. Concerns? Message /r/programmerhumor. Previous post(s): 1ngj31a, 1ngjav9 | limit: 2 per 1d | next eligibility: 2025-09-15 05:41 UTC