3 ms·
> you can call functions on it Only functions with no preconditions, unless the type makes more guarantees as to the moved-from state.
by masklinn 10mo ago
> you can call functions on it
Only functions with no preconditions, unless the type makes more guarantees as to the moved-from state.
- jjmarr 10mo agoThe guarantees is that a moved-from state is in an otherwise valid state. So, you can do things like check if a moved from std::vector is empty (often the case in practice), then start appending elements to it.