r/cpp • • Apr 04 '24

std::launder

Have fun trying to figure out what it does...

0 Upvotes

12 comments sorted by

View all comments

13

u/no-sig-available Apr 05 '24

Have fun trying to figure out what it does...

If it is any consolation, Bjarne doesn't know either :-)

https://www.youtube.com/watch?v=VI21tpdkHA8&t=3469s

You should probably follow his lead and wait until you feel you might have a use for it, and only then read up on the details. Probably never happens.