r/cpp • • Jan 02 '26

Every LLM hallucinates that std::vector deletes elements in a LIFO order

251 Upvotes

118 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Jan 02 '26 edited Jan 02 '26

This argument sounds very "religious" so to speak, like it's ideologically motivated rather than guided by actual engineering experience.

Can you perhaps provide some concrete actual examples where the standard explicitly specifying behavior results in a surprise?

1

u/ydieb Jan 02 '26

I guess that is also a way to interpret what I said.