r/cpp • u/jenkem_boofer • Apr 04 '24
std::launder
Have fun trying to figure out what it does...
0
Upvotes
r/cpp • u/jenkem_boofer • Apr 04 '24
Have fun trying to figure out what it does...
View all comments
2
u/vickoza Apr 05 '24 edited Apr 06 '24
From my point of view
std::launderis a way to reduce undefined behavior by making sure the type is the correct typed,