C ++: Valid but undefined state. What does it mean?

I am trying to understand std :: move. This document describes it well. But he says in the example section "..... while the bar loses its meaning and is now in a valid but unspecified state .....". Many other documents also use this terminology in the same context. Also, I found many answers on stackoverflow related to it. This question is exactly the same question. But he doesn't say, "What does unspecified mean?"

So my questions?

What does valid but unspecified mean?

What will be its effect on the pointer variable ( ClassA* ptr

)?

And what will be the effects on the object pointed to by the variable?

Thank.

+3
c ++ move


source to share


No one has answered this question yet

See similar questions:

20
What is the valid state for a "moved from" object in C ++ 11?

or similar:

8499
What is the "->" operator in C ++?
3076
What are the differences between a pointer variable and a reference variable in C ++?
2387
What does an explicit keyword mean?
1783
C ++ 11 introduced a standardized memory model. What does it mean? And how will this affect C ++ programming?
1518
Image processing: improvement of the algorithm for the recognition of "Coca-Cola Can"
1475
What is the effect of extern "C" in C ++?
908
What are POD types in C ++?
674
What does the C ++ standard mean for size int, long type?
667
C ++ Functors - and their use
603
What does T && (double ampersand) mean in C ++ 11?



All Articles
Loading...
X
Show
Funny
Dev
Pics