I have been trying to understand std::move. This doc describes it nicely. But it says in the example section "..... while bar loses its value, and now is in a valid but unspecified state .....". Lots of other docs also use this terminology in the same context. Also, I found lots of answers on stackoverflow related to it. This is an exactly same question. But it does not talk about "What being unspecified means?"
So my questions are?
What does being valid but unspecified means?
What will be its effect on a pointer variable (ClassA* ptr
)?
And what will be the effects on the object being pointed by the variable?
Thanks.