top | item 35329381

(no title)

mindv0rtex | 2 years ago

The only requirement placed on the “moved out” variable is that you should be able to call its destructor. Which means that it has to be in a valid but unspecified state. So it's fine to access such a variable, so long as you don't read its exact state. You can still assign to it, for instance.

discuss

order

No comments yet.