r/cpp • u/Little-Reflection986 • Feb 16 '26
Favorite optimizations ??
I'd love to hear stories about people's best feats of optimization, or something small you are able to use often!
137
Upvotes
View all comments
Show parent comment
-3
u/[deleted] Feb 16 '26
Why is move better? With the other way you have a guarantee of correctness, while the move has a potential use-after-move. I prefer the guarantee.