Hacker News new | ask | show | jobs
by detrino 3997 days ago
The standard defines preconditions when talking about what operations on valid on its containers. std::string::clear() has no preconditions so it is valid to call on a moved from object and then you can be sure of its state.