4 ms·
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 ca
by detrino 11y 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.