move - C++: valid but unspecified state. What does this mean? -
this question has answer here:
- what constitutes valid state “moved from” object in c++11? 2 answers
- does moving leave object in usable state? 2 answers
- what can moved-from object? 2 answers
- reusing moved container? 3 answers
i have been trying understand std::move. this doc describes nicely. says in example section "..... while bar loses value, , in valid unspecified state .....". lots of other docs use terminology in same context. also, found lots of answers on stackoverflow related it. this same question. not talk "what being unspecified means?"
so questions are?
what being valid unspecified means?
what effect on pointer variable (classa* ptr
)?
and effects on object being pointed variable?
thanks.
Comments
Post a Comment